Browse Source

daemon: remove two unneeded member vars

283
Neil Booth 9 years ago
parent
commit
abaf1bc6dc
  1. 5
      lib/daemon.py

5
lib/daemon.py

@ -58,13 +58,12 @@ class Daemon(DaemonThread):
self.network.start()
self.gui = None
self.wallets = {}
self.wallet = None
self.cmd_runner = Commands(self.config, self.wallet, self.network)
self.server = server
# Setup server
cmd_runner = Commands(self.config, None, self.network)
server.timeout = 0.1
for cmdname in known_commands:
server.register_function(getattr(self.cmd_runner, cmdname), cmdname)
server.register_function(getattr(cmd_runner, cmdname), cmdname)
server.register_function(self.run_cmdline, 'run_cmdline')
server.register_function(self.ping, 'ping')
server.register_function(self.run_daemon, 'daemon')

Loading…
Cancel
Save