daemon sleep before terminating

This commit is contained in:
ThomasV 2014-07-30 08:37:14 +02:00
parent efa0972971
commit 76d03a2817
1 changed files with 2 additions and 0 deletions

View File

@ -185,6 +185,8 @@ def daemon_loop(server):
client = ClientThread(server, connection)
client.start()
server.stop()
# sleep so that other threads can terminate cleanly
time.sleep(0.5)
print_error("Daemon exiting")