fix: do not clear wallet instance on wrong entered password if syncing

This commit is contained in:
ardocrat 2024-07-03 19:02:59 +03:00
parent 51cb6255f6
commit b230444ed3

View file

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