mirror of
https://github.com/haveno-dex/haveno.git
synced 2024-12-26 15:59:37 -05:00
check local connection after setting
This commit is contained in:
parent
dffb676f4e
commit
b1f8411641
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user