commit 99eabe39481bd94f9dbf455d615d38c2b6f87e17 parent 5d4bc8b44194fc9ce624ca3016e646e555e0aa2a Author: Florian Dold <florian.dold@gmail.com> Date: Tue, 24 May 2016 15:40:31 +0200 cancel timeout task Diffstat:
| M | src/backend/taler-merchant-httpd_pay.c | | | 6 | ++++++ |
1 file changed, 6 insertions(+), 0 deletions(-)
diff --git 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;i<pc->coins_cnt;i++) {