mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-07-10 00:39:32 -04:00
wallet poll requests connection changes off thread to avoid deadlock
This commit is contained in:
parent
5ca44c40cf
commit
e089a6f2a4
1 changed files with 1 additions and 1 deletions
|
@ -2061,7 +2061,7 @@ public class XmrWalletService extends XmrWalletBase {
|
|||
if (System.currentTimeMillis() - lastLogPollErrorTimestamp > HavenoUtils.LOG_POLL_ERROR_PERIOD_MS) {
|
||||
log.warn("Error polling main wallet's transactions from the pool: {}", e.getMessage());
|
||||
lastLogPollErrorTimestamp = System.currentTimeMillis();
|
||||
if (System.currentTimeMillis() - lastPollTxsTimestamp > POLL_TXS_TOLERANCE_MS) requestSwitchToNextBestConnection(sourceConnection);
|
||||
if (System.currentTimeMillis() - lastPollTxsTimestamp > POLL_TXS_TOLERANCE_MS) ThreadUtils.submitToPool(() -> requestSwitchToNextBestConnection(sourceConnection));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue