Skip to content

Commit

Permalink
Use thread.join() instead (#219)
Browse files Browse the repository at this point in the history
  • Loading branch information
handyman4hire authored and breakwa11 committed Apr 14, 2017
1 parent 1e7e707 commit 036df8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 036df8a

Please sign in to comment.