wallet poll looper runs off thread so polls do not build up

This commit is contained in:
woodser 2025-09-29 07:29:50 -04:00
parent bd12a1a4e6
commit 1eac2602a7
No known key found for this signature in database
GPG key ID: 55A10DD48ADEE5EF
2 changed files with 2 additions and 2 deletions

View file

@ -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);
}
}

View file

@ -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);
}
}