mirror of
https://github.com/haveno-dex/haveno.git
synced 2024-10-01 01:35:48 -04:00
switch to current connection on connection changed
This commit is contained in:
parent
9b26682646
commit
291622e452
@ -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;
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user