do not force restart main wallet on connection change with same config
This commit is contained in:
parent
bd9c28fafa
commit
8611593a3f
1 changed files with 9 additions and 4 deletions
|
@ -1367,11 +1367,16 @@ public class XmrWalletService extends XmrWalletBase {
|
||||||
}, THREAD_ID);
|
}, THREAD_ID);
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
// force restart main wallet if connection changed while syncing
|
// check if ignored
|
||||||
if (wallet != null) {
|
if (wallet == null || isShutDownStarted) return;
|
||||||
log.warn("Force restarting main wallet because connection changed while syncing");
|
if (HavenoUtils.connectionConfigsEqual(connection, wallet.getDaemonConnection())) {
|
||||||
forceRestartMainWallet();
|
updatePollPeriod();
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// force restart main wallet if connection changed while syncing
|
||||||
|
log.warn("Force restarting main wallet because connection changed while syncing");
|
||||||
|
forceRestartMainWallet();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue