commit 13a01b11d290eb56a8292982ddd78c4b8470f174
parent 854f49fbeddd78df4be4bacde768a65109425494
Author: ThomasV <thomasv@gitorious>
Date: Mon, 18 Aug 2014 13:40:08 +0200
daemon messages
Diffstat:
2 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/electrum b/electrum
@@ -240,6 +240,7 @@ if __name__ == '__main__':
})
elif arg == 'stop':
network.stop_daemon()
+ print_msg("Daemon stopped")
network.stop()
else:
print "unknown command \"%s\""% arg
diff --git a/lib/daemon.py b/lib/daemon.py
@@ -48,6 +48,8 @@ def get_daemon(config, start_daemon=True):
try:
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect(('', daemon_port))
+ if not daemon_started:
+ print_stderr("Connected to daemon on port %d"%daemon_port)
return s
except socket.error:
if not start_daemon: