detect thread status
add API params
This commit is contained in:
parent
82ffa15a56
commit
91576d1e08
5 changed files with 29 additions and 17 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue