Use thread.join() instead (#219)

This commit is contained in:
Handyman
2017-04-14 17:37:32 +08:00
committed by 破娃酱
parent 1e7e707024
commit 036df8aac6
+1 -1
View File
@@ -55,7 +55,7 @@ def main():
thread.start()
try:
while thread.is_alive():
time.sleep(10)
thread.join(10.0)
except (KeyboardInterrupt, IOError, OSError) as e:
import traceback
traceback.print_exc()