Merge pull request #3981 from Yuki-Inoue/load-wallet-result-reflected

daemon returns true only if the wallet is loaded
This commit is contained in:
ThomasV 2018-02-27 12:07:14 +01:00 committed by GitHub
commit 86ca382a20
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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: