gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-wallet-core] branch master updated (4382e090a -> 0cf147ba9)


From: gnunet
Subject: [taler-wallet-core] branch master updated (4382e090a -> 0cf147ba9)
Date: Wed, 28 Sep 2022 19:07:45 +0200

This is an automated email from the git hooks/post-receive script.

dold pushed a change to branch master
in repository wallet-core.

    from 4382e090a fix: long polling doesnt wait
     new 37243d4d8 Revert "fix: long polling doesnt wait"
     new 0cf147ba9 wallet-core: don't run into busy loop if only long-polling 
tasks are left

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 packages/taler-wallet-core/src/wallet.ts | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/packages/taler-wallet-core/src/wallet.ts 
b/packages/taler-wallet-core/src/wallet.ts
index c3acf1794..244bc1299 100644
--- a/packages/taler-wallet-core/src/wallet.ts
+++ b/packages/taler-wallet-core/src/wallet.ts
@@ -407,7 +407,7 @@ export async function runOperationWithErrorReporting(
       case OperationAttemptResultType.Pending:
         return await storeOperationPending(ws, opId);
       case OperationAttemptResultType.Longpoll:
-        return await storeOperationPending(ws, opId);
+        break;
     }
   } catch (e) {
     if (e instanceof TalerError) {
@@ -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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]