。。。

This commit is contained in:
Jerry Yan 2019-05-14 20:32:50 +08:00
parent 1677afd975
commit f5971c8429

View File

@ -179,9 +179,9 @@ def run():
_count_error = 0 _count_error = 0
except Exception as e: except Exception as e:
Common.appendError(e.__str__()) Common.appendError(e.__str__())
_count_error += 1 Common.refreshDownloader()
if not Common.api.roomLiver: if not Common.api.roomLiver:
_count_error += 1 Common.refreshDownloader()
if Common.forceStartEncodeThread: if Common.forceStartEncodeThread:
if not et.is_alive(): if not et.is_alive():
et = threading.Thread(target=encode, args=()) et = threading.Thread(target=encode, args=())
@ -195,5 +195,3 @@ def run():
ut.setDaemon(True) ut.setDaemon(True)
ut.start() ut.start()
Common.forceStartUploadThread = False Common.forceStartUploadThread = False
if _count_error>10:
Common.refreshDownloader()