From b1f84116417aa8d4110962430f7d7f76bd8319d8 Mon Sep 17 00:00:00 2001 From: woodser Date: Sun, 17 Dec 2023 09:40:31 -0500 Subject: [PATCH] check local connection after setting --- core/src/main/java/haveno/core/api/XmrConnectionService.java | 1 + 1 file changed, 1 insertion(+) diff --git a/core/src/main/java/haveno/core/api/XmrConnectionService.java b/core/src/main/java/haveno/core/api/XmrConnectionService.java index fe0d83b9..847460b5 100644 --- a/core/src/main/java/haveno/core/api/XmrConnectionService.java +++ b/core/src/main/java/haveno/core/api/XmrConnectionService.java @@ -400,6 +400,7 @@ public final class XmrConnectionService { if (isShutDownStarted || !connectionManager.getAutoSwitch() || !accountService.isAccountOpen()) return; if (xmrLocalNode.isConnected()) { setConnection(connection.getUri()); // switch to local node if connected + checkConnection(); } else if (getConnection() != null && getConnection().getUri().equals(connection.getUri())) { setConnection(getBestAvailableConnection()); // switch to best available if disconnected from local node }