daemon messages
This commit is contained in:
parent
854f49fbed
commit
13a01b11d2
1
electrum
1
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
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue