aboutsummaryrefslogtreecommitdiff
path: root/src/bank-lib
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2023-11-22 22:21:29 +0100
committerChristian Grothoff <christian@grothoff.org>2023-11-22 22:21:29 +0100
commit39ade3c761bf2d4fb3c2c3e63523efbad1aafc08 (patch)
tree1edae34e30ca010e41ba4defc30c4ca35c396cc7 /src/bank-lib
parent53fcbb4ed3e2548fa53556c15bc805688fcd13b2 (diff)
-fix minor threading issue
Diffstat (limited to 'src/bank-lib')
-rw-r--r--src/bank-lib/fakebank_twg_history.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/bank-lib/fakebank_twg_history.c b/src/bank-lib/fakebank_twg_history.c
index 44bae314b..6bed3cdf0 100644
--- a/src/bank-lib/fakebank_twg_history.c
+++ b/src/bank-lib/fakebank_twg_history.c
@@ -58,6 +58,7 @@ TALER_FAKEBANK_twg_get_debit_history_ (
struct HistoryContext *hc;
struct Transaction *pos;
enum GNUNET_GenericReturnValue ret;
+ bool in_shutdown;
if (NULL == cc)
{
@@ -264,12 +265,13 @@ TALER_FAKEBANK_twg_get_debit_history_ (
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,