properly shut down wirewatch

This commit is contained in:
Florian Dold 2020-01-20 03:19:54 +01:00
parent 43f7cf3d07
commit e6bd2a8328
No known key found for this signature in database
GPG Key ID: D2E4F00F29D02A4B

View File

@ -180,6 +180,11 @@ shutdown_task (void *cls)
struct WireAccount *wa;
(void) cls;
if (NULL != hh)
{
TALER_BANK_credit_history_cancel (hh);
hh = NULL;
}
if (NULL != ctx)
{
GNUNET_CURL_fini (ctx);
@ -195,11 +200,6 @@ shutdown_task (void *cls)
GNUNET_SCHEDULER_cancel (task);
task = NULL;
}
if (NULL != hh)
{
TALER_BANK_credit_history_cancel (hh);
hh = NULL;
}
TALER_EXCHANGEDB_plugin_unload (db_plugin);
db_plugin = NULL;
while (NULL != (wa = wa_head))