diff options
author | Christian Grothoff <christian@grothoff.org> | 2023-11-22 22:19:16 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2023-11-22 22:19:16 +0100 |
commit | 53fcbb4ed3e2548fa53556c15bc805688fcd13b2 (patch) | |
tree | 8266fae6f9ee0fbebf92068c3d4630ded1c9e0ef | |
parent | 0653993b669a0c66c69a960b2489e5fc3856f62c (diff) |
-fix minor threading issue
-rw-r--r-- | src/bank-lib/fakebank_tbr_get_history.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/bank-lib/fakebank_tbr_get_history.c b/src/bank-lib/fakebank_tbr_get_history.c index 8147d943a..4653c505b 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, |