From abaf1bc6dca5971653d0d7123904c0c4b128b181 Mon Sep 17 00:00:00 2001 From: Neil Booth Date: Sun, 31 Jan 2016 18:03:50 +0900 Subject: [PATCH] daemon: remove two unneeded member vars --- lib/daemon.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/daemon.py b/lib/daemon.py index 5f2b17215..d8bef8376 100644 --- a/lib/daemon.py +++ b/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')