Use thread.join() instead (#219)
This commit is contained in:
parent
1e7e707024
commit
036df8aac6
1 changed files with 1 additions and 1 deletions
|
@ -55,7 +55,7 @@ def main():
|
||||||
thread.start()
|
thread.start()
|
||||||
try:
|
try:
|
||||||
while thread.is_alive():
|
while thread.is_alive():
|
||||||
time.sleep(10)
|
thread.join(10.0)
|
||||||
except (KeyboardInterrupt, IOError, OSError) as e:
|
except (KeyboardInterrupt, IOError, OSError) as e:
|
||||||
import traceback
|
import traceback
|
||||||
traceback.print_exc()
|
traceback.print_exc()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue