tdaemon sleep before terminating - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 76d03a28179b3592182731c5423a63bbf3175eae DIR parent efa09729712a84afb59b73e666acc4fd20c7f62d HTML Author: ThomasV <thomasv@gitorious> Date: Wed, 30 Jul 2014 08:37:14 +0200 daemon sleep before terminating Diffstat: M lib/daemon.py | 2 ++ 1 file changed, 2 insertions(+), 0 deletions(-) --- DIR diff --git a/lib/daemon.py b/lib/daemon.py t@@ -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")