Browse Source

daemon sleep before terminating

283
ThomasV 11 years ago
parent
commit
76d03a2817
  1. 2
      lib/daemon.py

2
lib/daemon.py

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

Loading…
Cancel
Save