From 9a28d857eb145d52f3ccd69e5849405631f291c6 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Mon, 1 Apr 2024 16:15:08 +0200 Subject: improve shutdown in taler-merchant-exchange --- src/backend/taler-merchant-exchange.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') diff --git a/src/backend/taler-merchant-exchange.c b/src/backend/taler-merchant-exchange.c index d38e832b..e882eae0 100644 --- a/src/backend/taler-merchant-exchange.c +++ b/src/backend/taler-merchant-exchange.c @@ -540,6 +540,11 @@ shutdown_task (void *cls) db_plugin->event_listen_cancel (eh); eh = NULL; } + if (NULL != task) + { + GNUNET_SCHEDULER_cancel (task); + task = NULL; + } TALER_MERCHANTDB_plugin_unload (db_plugin); db_plugin = NULL; cfg = NULL; -- cgit v1.2.3