From d08fe7d715adcf093f21b0abbbeed0b781314819 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Mon, 1 Mar 2021 14:46:13 +0100 Subject: set async scope ID when entering MHD completion callback --- src/backend/taler-merchant-httpd.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/backend/taler-merchant-httpd.c') diff --git a/src/backend/taler-merchant-httpd.c b/src/backend/taler-merchant-httpd.c index 45d7ed07..7f9f8e3b 100644 --- a/src/backend/taler-merchant-httpd.c +++ b/src/backend/taler-merchant-httpd.c @@ -774,6 +774,7 @@ handle_mhd_completion_callback (void *cls, if (NULL == hc) return; + GNUNET_SCHEDULER_begin_async_scope (&hc->async_scope_id); GNUNET_log (GNUNET_ERROR_TYPE_INFO, "Finished handling request for `%s' with MHD termination code %d\n", hc->url, @@ -786,6 +787,9 @@ handle_mhd_completion_callback (void *cls, json_decref (hc->request_body); if (NULL != hc->instance) TMH_instance_decref (hc->instance); + memset (&hc->async_scope_id, + 0, + sizeof (struct GNUNET_AsyncScopeId)); GNUNET_free (hc); *con_cls = NULL; } -- cgit v1.2.3