commit 76d03a28179b3592182731c5423a63bbf3175eae
parent efa09729712a84afb59b73e666acc4fd20c7f62d
Author: ThomasV <thomasv@gitorious>
Date: Wed, 30 Jul 2014 08:37:14 +0200
daemon sleep before terminating
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/lib/daemon.py b/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")