aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2024-04-01 16:15:08 +0200
committerChristian Grothoff <christian@grothoff.org>2024-04-01 16:15:08 +0200
commit9a28d857eb145d52f3ccd69e5849405631f291c6 (patch)
treee82ad4a9e6d68f4573a06b7107221e77bab3b0b8 /src
parent618a3dd10f731a6f215d5035499611a7e31fbfb0 (diff)
improve shutdown in taler-merchant-exchange
Diffstat (limited to 'src')
-rw-r--r--src/backend/taler-merchant-exchange.c5
1 files changed, 5 insertions, 0 deletions
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;