mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-10-10 17:48:43 -04:00
wallet poll looper runs off thread so polls do not build up
This commit is contained in:
parent
bd12a1a4e6
commit
1eac2602a7
2 changed files with 2 additions and 2 deletions
|
@ -2850,7 +2850,7 @@ public abstract class Trade extends XmrWalletBase implements Tradable, Model {
|
|||
if (isShutDownStarted || isPolling()) return;
|
||||
updatePollPeriod();
|
||||
log.info("Starting to poll wallet for {} {}", getClass().getSimpleName(), getId());
|
||||
pollLooper = new TaskLooper(() -> pollWallet());
|
||||
pollLooper = new TaskLooper(() -> new Thread(() -> pollWallet()).start());
|
||||
pollLooper.start(pollPeriodMs);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1955,7 +1955,7 @@ public class XmrWalletService extends XmrWalletBase {
|
|||
synchronized (walletLock) {
|
||||
if (isShutDownStarted || isPolling()) return;
|
||||
updatePollPeriod();
|
||||
pollLooper = new TaskLooper(() -> pollWallet());
|
||||
pollLooper = new TaskLooper(() -> new Thread(() -> pollWallet()).start());
|
||||
pollLooper.start(pollPeriodMs);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue