diff options
author | Christian Grothoff <christian@grothoff.org> | 2021-08-22 18:22:51 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2021-08-22 18:22:51 +0200 |
commit | 37f049b3bc98c72f68687e67f102ee5b06f9263d (patch) | |
tree | 9e93ccbc7cdfb1405af276f3ca46ca0e12c139c1 /src/bank-lib/fakebank.c | |
parent | a888981952af2b32579e5a09d65b2c241b533ed5 (diff) | |
download | exchange-37f049b3bc98c72f68687e67f102ee5b06f9263d.tar.xz |
-fix fakebank shutdown sequence
Diffstat (limited to 'src/bank-lib/fakebank.c')
-rw-r--r-- | src/bank-lib/fakebank.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/bank-lib/fakebank.c b/src/bank-lib/fakebank.c index 723cc8dca..eb6f4c79c 100644 --- a/src/bank-lib/fakebank.c +++ b/src/bank-lib/fakebank.c @@ -1169,11 +1169,6 @@ free_account (void *cls, void TALER_FAKEBANK_stop (struct TALER_FAKEBANK_Handle *h) { - if (NULL != h->mhd_task) - { - GNUNET_SCHEDULER_cancel (h->mhd_task); - h->mhd_task = NULL; - } if (NULL != h->lp_task) { GNUNET_SCHEDULER_cancel (h->lp_task); @@ -1224,6 +1219,11 @@ TALER_FAKEBANK_stop (struct TALER_FAKEBANK_Handle *h) MHD_stop_daemon (h->mhd_bank); h->mhd_bank = NULL; } + if (NULL != h->mhd_task) + { + GNUNET_SCHEDULER_cancel (h->mhd_task); + h->mhd_task = NULL; + } if (NULL != h->accounts) { GNUNET_CONTAINER_multihashmap_iterate (h->accounts, |