daemon: suppress pop wallet failure
follow-up 3ec0ceba3e
related: #4126
This commit is contained in:
@@ -251,7 +251,8 @@ class Daemon(DaemonThread):
|
|||||||
return self.wallets.get(path)
|
return self.wallets.get(path)
|
||||||
|
|
||||||
def stop_wallet(self, path):
|
def stop_wallet(self, path):
|
||||||
wallet = self.wallets.pop(path)
|
wallet = self.wallets.pop(path, None)
|
||||||
|
if not wallet: return
|
||||||
wallet.stop_threads()
|
wallet.stop_threads()
|
||||||
|
|
||||||
def run_cmdline(self, config_options):
|
def run_cmdline(self, config_options):
|
||||||
|
|||||||
Reference in New Issue
Block a user