wallet-core: don't run into busy loop if only long-polling tasks are left

This commit is contained in:
Florian Dold 2022-09-28 19:07:37 +02:00
parent 37243d4d8c
commit 0cf147ba98
No known key found for this signature in database
GPG Key ID: D2E4F00F29D02A4B

View File

@ -513,7 +513,7 @@ async function runTaskLoop(
} }
minDue = AbsoluteTime.min(minDue, p.timestampDue); minDue = AbsoluteTime.min(minDue, p.timestampDue);
if (AbsoluteTime.isExpired(p.timestampDue)) { if (AbsoluteTime.isExpired(p.timestampDue) && !ws.activeLongpoll[p.id]) {
numDue++; numDue++;
} }
if (p.givesLifeness) { if (p.givesLifeness) {