detect thread status

add API params
This commit is contained in:
BreakWa11 2016-06-03 20:56:59 +08:00
parent 82ffa15a56
commit 91576d1e08
5 changed files with 29 additions and 17 deletions

View file

@ -50,8 +50,8 @@ def main():
thread = MainThread()
thread.start()
try:
while True:
time.sleep(99999)
while thread.is_alive():
time.sleep(10)
except (KeyboardInterrupt, IOError, OSError) as e:
import traceback
traceback.print_exc()