mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-11-30 16:36:36 -05:00
only save wallet on sync with progress if responsive (#1954)
This commit is contained in:
parent
f079ecaa82
commit
fe7b949c87
1 changed files with 1 additions and 1 deletions
|
|
@ -150,9 +150,9 @@ public abstract class XmrWalletBase {
|
|||
if (wallet != null) { // can become null if interrupted by force close
|
||||
if (syncProgressError == null || !HavenoUtils.isUnresponsive(syncProgressError)) { // TODO: skipping stop sync if unresponsive because wallet will hang. if unresponsive, wallet is assumed to be force restarted by caller, but that should be done internally here instead of externally?
|
||||
wallet.stopSyncing();
|
||||
saveWallet();
|
||||
}
|
||||
}
|
||||
saveWallet();
|
||||
if (syncProgressError != null) throw new RuntimeException(syncProgressError);
|
||||
} catch (Exception e) {
|
||||
throw e;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue