taler-typescript-core

Wallet core logic and WebUIs for various components
Log | Files | Refs | Submodules | README | LICENSE

commit 0cf147ba98644aaaf30f4023188b97014e2c246d
parent 37243d4d8c241f971fe7524b0976e1b76b0e654d
Author: Florian Dold <florian@dold.me>
Date:   Wed, 28 Sep 2022 19:07:37 +0200

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

Diffstat:
Mpackages/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 @@ -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) {