From b230444ed36596f98174e1b1fd99a273805e7694 Mon Sep 17 00:00:00 2001 From: ardocrat Date: Wed, 3 Jul 2024 19:02:59 +0300 Subject: [PATCH] fix: do not clear wallet instance on wrong entered password if syncing --- src/wallet/wallet.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/wallet/wallet.rs b/src/wallet/wallet.rs index 9f02526..3c3b9c0 100644 --- a/src/wallet/wallet.rs +++ b/src/wallet/wallet.rs @@ -356,7 +356,9 @@ impl Wallet { self.is_open.store(true, Ordering::Relaxed); } Err(e) => { - self.instance = None; + if !self.syncing() { + self.instance = None; + } return Err(e) } }