fix: do not clear wallet instance on wrong entered password if syncing
This commit is contained in:
parent
51cb6255f6
commit
b230444ed3
1 changed files with 3 additions and 1 deletions
|
@ -356,7 +356,9 @@ impl Wallet {
|
||||||
self.is_open.store(true, Ordering::Relaxed);
|
self.is_open.store(true, Ordering::Relaxed);
|
||||||
}
|
}
|
||||||
Err(e) => {
|
Err(e) => {
|
||||||
self.instance = None;
|
if !self.syncing() {
|
||||||
|
self.instance = None;
|
||||||
|
}
|
||||||
return Err(e)
|
return Err(e)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue