mirror of
https://github.com/retoaccess1/haveno-reto.git
synced 2024-11-10 13:13:36 +01: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 (isShutDownStarted || !connectionManager.getAutoSwitch() || !accountService.isAccountOpen()) return;
|
||||||
if (xmrLocalNode.isConnected()) {
|
if (xmrLocalNode.isConnected()) {
|
||||||
setConnection(connection.getUri()); // switch to local node if connected
|
setConnection(connection.getUri()); // switch to local node if connected
|
||||||
|
checkConnection();
|
||||||
} else if (getConnection() != null && getConnection().getUri().equals(connection.getUri())) {
|
} else if (getConnection() != null && getConnection().getUri().equals(connection.getUri())) {
|
||||||
setConnection(getBestAvailableConnection()); // switch to best available if disconnected from local node
|
setConnection(getBestAvailableConnection()); // switch to best available if disconnected from local node
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user