daemon: call self.start in __init__, and allow not to listen on jsonrpc
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user