This commit is contained in:
Jerry Yan 2019-03-21 13:00:57 +08:00
parent bf8d3b48cb
commit dd08229ff1

View File

@ -157,6 +157,14 @@ if __name__ == "__main__":
_count = 0
while True:
if api.isLive:
if _count % 6 == 0:
try:
api.updRoomInfo()
except:
time.sleep(10)
_count += 1
continue
_count += 1
if d is None:
d = datetime.strftime(datetime.now(), "%Y_%m_%d")
if not t.is_alive():
@ -169,13 +177,6 @@ if __name__ == "__main__":
ut.setDaemon(True)
ut.start()
time.sleep(20)
if _count % 6 == 0:
try:
api.updRoomInfo()
except:
time.sleep(10)
continue
_count += 1
else:
if d is not None:
d = None