aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2022-09-28 19:07:37 +0200
committerFlorian Dold <florian@dold.me>2022-09-28 19:07:37 +0200
commit0cf147ba98644aaaf30f4023188b97014e2c246d (patch)
treead8ca1ab0bc3494db303a8d0f760fcfe03fc4d8e
parent37243d4d8c241f971fe7524b0976e1b76b0e654d (diff)
wallet-core: don't run into busy loop if only long-polling tasks are left
-rw-r--r--packages/taler-wallet-core/src/wallet.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/taler-wallet-core/src/wallet.ts b/packages/taler-wallet-core/src/wallet.ts
index 4323f68f5..244bc1299 100644
--- a/packages/taler-wallet-core/src/wallet.ts
+++ b/packages/taler-wallet-core/src/wallet.ts
@@ -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) {