summaryrefslogtreecommitdiff
path: root/src/exchange/taler-exchange-wirewatch.c
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2020-01-20 03:19:54 +0100
committerFlorian Dold <florian.dold@gmail.com>2020-01-20 03:19:54 +0100
commite6bd2a832853bcd2a8b16940bfb306c04d5d734f (patch)
tree7077578f13c3345563caf801a70bdfb15ea31e46 /src/exchange/taler-exchange-wirewatch.c
parent43f7cf3d07d088e8f0886007599a912ca9621191 (diff)
downloadexchange-e6bd2a832853bcd2a8b16940bfb306c04d5d734f.tar.gz
exchange-e6bd2a832853bcd2a8b16940bfb306c04d5d734f.tar.bz2
exchange-e6bd2a832853bcd2a8b16940bfb306c04d5d734f.zip
properly shut down wirewatch
Diffstat (limited to 'src/exchange/taler-exchange-wirewatch.c')
-rw-r--r--src/exchange/taler-exchange-wirewatch.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/exchange/taler-exchange-wirewatch.c b/src/exchange/taler-exchange-wirewatch.c
index 43c5f7642..21d96668b 100644
--- a/src/exchange/taler-exchange-wirewatch.c
+++ b/src/exchange/taler-exchange-wirewatch.c
@@ -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))