diff options
author | Florian Dold <florian@dold.me> | 2022-09-28 19:07:37 +0200 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2022-09-28 19:07:37 +0200 |
commit | 0cf147ba98644aaaf30f4023188b97014e2c246d (patch) | |
tree | ad8ca1ab0bc3494db303a8d0f760fcfe03fc4d8e /packages/taler-wallet-core/src | |
parent | 37243d4d8c241f971fe7524b0976e1b76b0e654d (diff) | |
download | wallet-core-0cf147ba98644aaaf30f4023188b97014e2c246d.tar.xz |
wallet-core: don't run into busy loop if only long-polling tasks are left
Diffstat (limited to 'packages/taler-wallet-core/src')
-rw-r--r-- | packages/taler-wallet-core/src/wallet.ts | 2 |
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) { |