diff --git a/electrum/daemon.py b/electrum/daemon.py index b1ab1e84d..9c5c9d2e4 100644 --- a/electrum/daemon.py +++ b/electrum/daemon.py @@ -562,6 +562,8 @@ class Daemon(Logger): if os.path.exists(path): os.unlink(path) self.update_recently_opened_wallets(path, remove=True) + if self.config.CURRENT_WALLET == path: + self.config.CURRENT_WALLET = None return True return False