[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-wallet-core] 02/02: wallet-core: don't run into busy loop if only
From: |
gnunet |
Subject: |
[taler-wallet-core] 02/02: wallet-core: don't run into busy loop if only long-polling tasks are left |
Date: |
Wed, 28 Sep 2022 19:07:47 +0200 |
This is an automated email from the git hooks/post-receive script.
dold pushed a commit to branch master
in repository wallet-core.
commit 0cf147ba98644aaaf30f4023188b97014e2c246d
Author: Florian Dold <florian@dold.me>
AuthorDate: Wed Sep 28 19:07:37 2022 +0200
wallet-core: don't run into busy loop if only long-polling tasks are left
---
packages/taler-wallet-core/src/wallet.ts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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) {
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.