diff options
Diffstat (limited to 'packages/taler-wallet-core/src/wallet.ts')
-rw-r--r-- | packages/taler-wallet-core/src/wallet.ts | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/packages/taler-wallet-core/src/wallet.ts b/packages/taler-wallet-core/src/wallet.ts index 484507d6b..aa3810035 100644 --- a/packages/taler-wallet-core/src/wallet.ts +++ b/packages/taler-wallet-core/src/wallet.ts @@ -512,14 +512,14 @@ async function runTaskLoop( ); continue; } - - minDue = AbsoluteTime.min(minDue, p.timestampDue); - if (AbsoluteTime.isExpired(p.timestampDue) && !ws.activeLongpoll[p.id]) { - numDue++; - } if (p.givesLifeness) { numGivingLiveness++; } + if (!p.isDue) { + continue; + } + minDue = AbsoluteTime.min(minDue, p.timestampDue); + numDue++; } if (opts.stopWhenDone && numGivingLiveness === 0 && iteration !== 0) { |