diff --git a/core/src/main/java/haveno/core/trade/Trade.java b/core/src/main/java/haveno/core/trade/Trade.java index afa7579209..efb62c39e8 100644 --- a/core/src/main/java/haveno/core/trade/Trade.java +++ b/core/src/main/java/haveno/core/trade/Trade.java @@ -2323,6 +2323,9 @@ public abstract class Trade implements Tradable, Model { private void onConnectionChanged(MoneroRpcConnection connection) { synchronized (walletLock) { + // use current connection + connection = xmrConnectionService.getConnection(); + // check if ignored if (isShutDownStarted) return; if (getWallet() == null) return; 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 aa44226555..f838c92beb 100644 --- a/core/src/main/java/haveno/core/xmr/wallet/XmrWalletService.java +++ b/core/src/main/java/haveno/core/xmr/wallet/XmrWalletService.java @@ -1660,6 +1660,11 @@ public class XmrWalletService { private void onConnectionChanged(MoneroRpcConnection connection) { synchronized (WALLET_LOCK) { + + // use current connection + connection = xmrConnectionService.getConnection(); + + // check if ignored if (wallet == null || isShutDownStarted) return; if (HavenoUtils.connectionConfigsEqual(connection, wallet.getDaemonConnection())) return; String oldProxyUri = wallet == null || wallet.getDaemonConnection() == null ? null : wallet.getDaemonConnection().getProxyUri();