daemon: suppress pop wallet failure

follow-up 3ec0ceba3e
related: #4126
This commit is contained in:
SomberNight 2018-09-20 00:55:09 +02:00
parent cedd518aea
commit d50b36d314
No known key found for this signature in database
GPG key ID: B33B5F232C6271E9

View file

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