[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-wallet-core] branch master updated: fix: to skip the operation ma
From: |
gnunet |
Subject: |
[taler-wallet-core] branch master updated: fix: to skip the operation maxRetries need to be calculated first |
Date: |
Wed, 18 May 2022 19:45:04 +0200 |
This is an automated email from the git hooks/post-receive script.
sebasjm pushed a commit to branch master
in repository wallet-core.
The following commit(s) were added to refs/heads/master by this push:
new 145714b3 fix: to skip the operation maxRetries need to be calculated
first
145714b3 is described below
commit 145714b335be7896501afe21cb8c7419c1e9cb83
Author: Sebastian <sebasjm@gmail.com>
AuthorDate: Wed May 18 14:43:48 2022 -0300
fix: to skip the operation maxRetries need to be calculated first
---
packages/taler-wallet-core/src/wallet.ts | 17 +++++++++--------
1 file changed, 9 insertions(+), 8 deletions(-)
diff --git a/packages/taler-wallet-core/src/wallet.ts
b/packages/taler-wallet-core/src/wallet.ts
index e2d50444..ffceec38 100644
--- a/packages/taler-wallet-core/src/wallet.ts
+++ b/packages/taler-wallet-core/src/wallet.ts
@@ -337,14 +337,6 @@ async function runTaskLoop(
let minDue: AbsoluteTime = AbsoluteTime.never();
for (const p of pending.pendingOperations) {
- minDue = AbsoluteTime.min(minDue, p.timestampDue);
- if (AbsoluteTime.isExpired(p.timestampDue)) {
- numDue++;
- }
- if (p.givesLifeness) {
- numGivingLiveness++;
- }
-
const maxRetries = opts.maxRetries;
if (maxRetries && p.retryInfo && p.retryInfo.retryCounter > maxRetries) {
@@ -353,6 +345,15 @@ async function runTaskLoop(
);
continue;
}
+
+ minDue = AbsoluteTime.min(minDue, p.timestampDue);
+ if (AbsoluteTime.isExpired(p.timestampDue)) {
+ numDue++;
+ }
+ if (p.givesLifeness) {
+ numGivingLiveness++;
+ }
+
}
if (opts.stopWhenDone && numGivingLiveness === 0 && iteration !== 0) {
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-wallet-core] branch master updated: fix: to skip the operation maxRetries need to be calculated first,
gnunet <=