-fix fakebank shutdown sequence

This commit is contained in:
Christian Grothoff 2021-08-22 18:19:43 +02:00
parent 35133c1e67
commit a888981952
No known key found for this signature in database
GPG Key ID: 939E6BE1E29FC3CC

View File

@ -1186,11 +1186,6 @@ TALER_FAKEBANK_stop (struct TALER_FAKEBANK_Handle *h)
h->mhd_rfd = NULL;
}
#endif
if (NULL != h->mhd_bank)
{
MHD_stop_daemon (h->mhd_bank);
h->mhd_bank = NULL;
}
if (-1 != h->lp_event)
{
uint64_t val = 1;
@ -1224,6 +1219,11 @@ TALER_FAKEBANK_stop (struct TALER_FAKEBANK_Handle *h)
lp_trigger (lp,
h);
}
if (NULL != h->mhd_bank)
{
MHD_stop_daemon (h->mhd_bank);
h->mhd_bank = NULL;
}
if (NULL != h->accounts)
{
GNUNET_CONTAINER_multihashmap_iterate (h->accounts,