From 99eabe39481bd94f9dbf455d615d38c2b6f87e17 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Tue, 24 May 2016 15:40:31 +0200 Subject: cancel timeout task --- src/backend/taler-merchant-httpd_pay.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/backend/taler-merchant-httpd_pay.c b/src/backend/taler-merchant-httpd_pay.c index 850b36d8..89fe13c1 100644 --- a/src/backend/taler-merchant-httpd_pay.c +++ b/src/backend/taler-merchant-httpd_pay.c @@ -398,6 +398,12 @@ pay_context_cleanup (struct TM_HandlerContext *hc) struct PayContext *pc = (struct PayContext *) hc; unsigned int i; + if (NULL != pc->timeout_task) + { + GNUNET_SCHEDULER_cancel (pc->timeout_task); + pc->timeout_task = NULL; + } + TMH_PARSE_post_cleanup_callback (pc->json_parse_context); for (i=0;icoins_cnt;i++) { -- cgit v1.2.3