Browse Source

Use thread.join() instead (#219)

dev
Handyman 8 years ago
committed by 破娃酱
parent
commit
036df8aac6
  1. 2
      server.py

2
server.py

@ -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()

Loading…
Cancel
Save