From fa25843684fd855b13d36267d729de4b483977b1 Mon Sep 17 00:00:00 2001 From: woodser Date: Tue, 6 Aug 2024 06:03:22 -0400 Subject: [PATCH] save wallet on each poll --- .../java/haveno/core/xmr/wallet/XmrWalletService.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/src/main/java/haveno/core/xmr/wallet/XmrWalletService.java b/core/src/main/java/haveno/core/xmr/wallet/XmrWalletService.java index aba437f76a..aebc87dc9f 100644 --- a/core/src/main/java/haveno/core/xmr/wallet/XmrWalletService.java +++ b/core/src/main/java/haveno/core/xmr/wallet/XmrWalletService.java @@ -1808,21 +1808,21 @@ public class XmrWalletService extends XmrWalletBase { //e.printStackTrace(); } } finally { + synchronized (pollLock) { + pollInProgress = false; + } // cache wallet info last synchronized (walletLock) { if (wallet != null && !isShutDownStarted) { try { cacheWalletInfo(); + requestSaveMainWallet(); } catch (Exception e) { e.printStackTrace(); } } } - - synchronized (pollLock) { - pollInProgress = false; - } } }