1
0

daemon: call self.start in __init__, and allow not to listen on jsonrpc

This commit is contained in:
SomberNight
2018-10-01 17:56:51 +02:00
parent 4653a1007c
commit 7dd4032cce
2 changed files with 6 additions and 5 deletions

View File

@@ -416,7 +416,6 @@ if __name__ == '__main__':
if fd is not None:
plugins = init_plugins(config, config.get('gui', 'qt'))
d = daemon.Daemon(config, fd)
d.start()
d.init_gui(config, plugins)
sys.exit(0)
else:
@@ -437,7 +436,6 @@ if __name__ == '__main__':
sys.exit(0)
init_plugins(config, 'cmdline')
d = daemon.Daemon(config, fd)
d.start()
if config.get('websocket_server'):
from electrum import websockets
websockets.WebSocketServer(config, d.network).start()