check local connection after setting

This commit is contained in:
woodser 2023-12-17 09:40:31 -05:00
parent dffb676f4e
commit b1f8411641

View File

@ -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
}