daemon returns true only if the wallet is loaded
This commit is contained in:
parent
52d41a4339
commit
6687c1b336
|
@ -174,7 +174,7 @@ class Daemon(DaemonThread):
|
||||||
path = config.get_wallet_path()
|
path = config.get_wallet_path()
|
||||||
wallet = self.load_wallet(path, config.get('password'))
|
wallet = self.load_wallet(path, config.get('password'))
|
||||||
self.cmd_runner.wallet = wallet
|
self.cmd_runner.wallet = wallet
|
||||||
response = True
|
response = wallet is not None
|
||||||
elif sub == 'close_wallet':
|
elif sub == 'close_wallet':
|
||||||
path = config.get_wallet_path()
|
path = config.get_wallet_path()
|
||||||
if path in self.wallets:
|
if path in self.wallets:
|
||||||
|
|
Loading…
Reference in New Issue