gnunet-svn
[Top][All Lists]
Advanced

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

[taler-exchange] branch master updated: -fix minor threading issue


From: gnunet
Subject: [taler-exchange] branch master updated: -fix minor threading issue
Date: Wed, 22 Nov 2023 23:19:19 +0100

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

grothoff pushed a commit to branch master
in repository exchange.

The following commit(s) were added to refs/heads/master by this push:
     new 53fcbb4e -fix minor threading issue
53fcbb4e is described below

commit 53fcbb4ed3e2548fa53556c15bc805688fcd13b2
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Wed Nov 22 22:19:16 2023 +0100

    -fix minor threading issue
---
 src/bank-lib/fakebank_tbr_get_history.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/bank-lib/fakebank_tbr_get_history.c 
b/src/bank-lib/fakebank_tbr_get_history.c
index 8147d943..4653c505 100644
--- a/src/bank-lib/fakebank_tbr_get_history.c
+++ b/src/bank-lib/fakebank_tbr_get_history.c
@@ -60,6 +60,7 @@ TALER_FAKEBANK_tbr_get_history_incoming (
   struct HistoryContext *hc;
   const struct Transaction *pos;
   enum GNUNET_GenericReturnValue ret;
+  bool in_shutdown;
 
   if (NULL == cc)
   {
@@ -267,12 +268,13 @@ TALER_FAKEBANK_tbr_get_history_incoming (
                    pthread_mutex_unlock (&h->big_lock));
     return MHD_YES;
   }
+  in_shutdown = h->in_shutdown;
   GNUNET_assert (0 ==
                  pthread_mutex_unlock (&h->big_lock));
 finish:
   if (0 == json_array_size (hc->history))
   {
-    GNUNET_break (h->in_shutdown ||
+    GNUNET_break (in_shutdown ||
                   (! GNUNET_TIME_absolute_is_future (hc->timeout)));
     return TALER_MHD_reply_static (connection,
                                    MHD_HTTP_NO_CONTENT,

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