diff options
author | Christian Grothoff <christian@grothoff.org> | 2024-04-01 16:15:08 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2024-04-01 16:15:08 +0200 |
commit | 9a28d857eb145d52f3ccd69e5849405631f291c6 (patch) | |
tree | e82ad4a9e6d68f4573a06b7107221e77bab3b0b8 | |
parent | 618a3dd10f731a6f215d5035499611a7e31fbfb0 (diff) |
improve shutdown in taler-merchant-exchange
-rw-r--r-- | src/backend/taler-merchant-exchange.c | 5 |
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; |