gnunet-svn
[Top][All Lists]
Advanced

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

[taler-merchant] branch master updated: -fix non-termination issue for t


From: gnunet
Subject: [taler-merchant] branch master updated: -fix non-termination issue for taler-merchant-depositccheck
Date: Thu, 28 Mar 2024 11:37:25 +0100

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

grothoff pushed a commit to branch master
in repository merchant.

The following commit(s) were added to refs/heads/master by this push:
     new 9af016d3 -fix non-termination issue for taler-merchant-depositccheck
9af016d3 is described below

commit 9af016d3f2b1fa2f28b853f399bca101bdfb9a6f
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Thu Mar 28 11:37:21 2024 +0100

    -fix non-termination issue for taler-merchant-depositccheck
---
 src/backend/taler-merchant-depositcheck.c | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/src/backend/taler-merchant-depositcheck.c 
b/src/backend/taler-merchant-depositcheck.c
index af2fa267..9245e1fb 100644
--- a/src/backend/taler-merchant-depositcheck.c
+++ b/src/backend/taler-merchant-depositcheck.c
@@ -391,9 +391,9 @@ run_at (struct GNUNET_TIME_Absolute deadline)
                 GNUNET_TIME_absolute2s (deadline));
     return; /* too early */
   }
+  next_deadline = deadline;
   if (NULL != task)
     GNUNET_SCHEDULER_cancel (task);
-  next_deadline = deadline;
   task = GNUNET_SCHEDULER_add_at (deadline,
                                   &select_work,
                                   NULL);
@@ -567,8 +567,12 @@ deposit_get_cb (void *cls,
   GNUNET_assert (NULL != keys);
   if ( (w_count < CONCURRENCY_LIMIT / 2) ||
        (0 == w_count) )
+  {
+    if (NULL != task)
+      GNUNET_SCHEDULER_cancel (task);
     task = GNUNET_SCHEDULER_add_now (&select_work,
                                      NULL);
+  }
 }
 
 
@@ -774,6 +778,8 @@ keys_cb (
     return;
   }
   keys = TALER_EXCHANGE_keys_incref (in_keys);
+  if (NULL != task)
+    GNUNET_SCHEDULER_cancel (task);
   task = GNUNET_SCHEDULER_add_now (&select_work,
                                    NULL);
 }

-- 
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]