From fe7b949c876ea9d59772ac3e160e3fe82f43df55 Mon Sep 17 00:00:00 2001 From: woodser Date: Sun, 14 Sep 2025 15:36:28 -0400 Subject: [PATCH] only save wallet on sync with progress if responsive (#1954) --- core/src/main/java/haveno/core/xmr/wallet/XmrWalletBase.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/haveno/core/xmr/wallet/XmrWalletBase.java b/core/src/main/java/haveno/core/xmr/wallet/XmrWalletBase.java index c60e3ea0e3..7baf9d8fa7 100644 --- a/core/src/main/java/haveno/core/xmr/wallet/XmrWalletBase.java +++ b/core/src/main/java/haveno/core/xmr/wallet/XmrWalletBase.java @@ -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;