From 6687c1b3360c21a9508b2f3419b1bc84eac195c8 Mon Sep 17 00:00:00 2001 From: Yuki Inoue Date: Tue, 27 Feb 2018 18:43:00 +0900 Subject: [PATCH] daemon returns true only if the wallet is loaded --- lib/daemon.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/daemon.py b/lib/daemon.py index bebcf404..b3242215 100644 --- a/lib/daemon.py +++ b/lib/daemon.py @@ -174,7 +174,7 @@ class Daemon(DaemonThread): path = config.get_wallet_path() wallet = self.load_wallet(path, config.get('password')) self.cmd_runner.wallet = wallet - response = True + response = wallet is not None elif sub == 'close_wallet': path = config.get_wallet_path() if path in self.wallets: