From 6030f1dd571c4762308d82bfae0daf6aa1c2a055 Mon Sep 17 00:00:00 2001 From: woodser Date: Sun, 30 Apr 2023 06:41:15 -0400 Subject: [PATCH] avoid error on resume from standby --- core/src/main/java/haveno/core/xmr/wallet/XmrWalletService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 a78bd489..2986ede2 100644 --- a/core/src/main/java/haveno/core/xmr/wallet/XmrWalletService.java +++ b/core/src/main/java/haveno/core/xmr/wallet/XmrWalletService.java @@ -772,9 +772,9 @@ public class XmrWalletService { wallet.setDaemonConnection(connection); if (connection != null) wallet.getDaemonConnection().setPrintStackTrace(PRINT_STACK_TRACE); if (connection != null && !Boolean.FALSE.equals(connection.isConnected())) { - wallet.startSyncing(connectionsService.getRefreshPeriodMs()); new Thread(() -> { try { + wallet.startSyncing(connectionsService.getRefreshPeriodMs()); wallet.sync(); } catch (Exception e) { log.warn("Failed to sync main wallet after setting daemon connection: " + e.getMessage());