mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-04-28 11:26:27 -04:00
do not force restart main wallet on connection change with same config
This commit is contained in:
parent
bd9c28fafa
commit
8611593a3f
@ -1367,12 +1367,17 @@ public class XmrWalletService extends XmrWalletBase {
|
|||||||
}, THREAD_ID);
|
}, THREAD_ID);
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
|
// check if ignored
|
||||||
|
if (wallet == null || isShutDownStarted) return;
|
||||||
|
if (HavenoUtils.connectionConfigsEqual(connection, wallet.getDaemonConnection())) {
|
||||||
|
updatePollPeriod();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// force restart main wallet if connection changed while syncing
|
// force restart main wallet if connection changed while syncing
|
||||||
if (wallet != null) {
|
|
||||||
log.warn("Force restarting main wallet because connection changed while syncing");
|
log.warn("Force restarting main wallet because connection changed while syncing");
|
||||||
forceRestartMainWallet();
|
forceRestartMainWallet();
|
||||||
}
|
}
|
||||||
}
|
|
||||||
});
|
});
|
||||||
|
|
||||||
// initialize main wallet when daemon synced
|
// initialize main wallet when daemon synced
|
||||||
|
Loading…
x
Reference in New Issue
Block a user