only save wallet on sync with progress if responsive (#1954)

This commit is contained in:
woodser 2025-09-14 15:36:28 -04:00 committed by GitHub
parent f079ecaa82
commit fe7b949c87
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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;