electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit d50b36d3149589dd657e9af2c4f2c2e7a9a2da38
parent cedd518aead91916ae68f96261908986a2a7909b
Author: SomberNight <somber.night@protonmail.com>
Date:   Thu, 20 Sep 2018 00:55:09 +0200

daemon: suppress pop wallet failure

follow-up 3ec0ceba3e7c65404d2579c64fac9449cbc450f1
related: #4126

Diffstat:
Melectrum/daemon.py | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/electrum/daemon.py b/electrum/daemon.py @@ -251,7 +251,8 @@ class Daemon(DaemonThread): return self.wallets.get(path) def stop_wallet(self, path): - wallet = self.wallets.pop(path) + wallet = self.wallets.pop(path, None) + if not wallet: return wallet.stop_threads() def run_cmdline(self, config_options):