wallet-core: don't run into busy loop if only long-polling tasks are left
This commit is contained in:
parent
37243d4d8c
commit
0cf147ba98
@ -513,7 +513,7 @@ async function runTaskLoop(
|
||||
}
|
||||
|
||||
minDue = AbsoluteTime.min(minDue, p.timestampDue);
|
||||
if (AbsoluteTime.isExpired(p.timestampDue)) {
|
||||
if (AbsoluteTime.isExpired(p.timestampDue) && !ws.activeLongpoll[p.id]) {
|
||||
numDue++;
|
||||
}
|
||||
if (p.givesLifeness) {
|
||||
|
Loading…
Reference in New Issue
Block a user