diff options
author | Florian Dold <florian.dold@gmail.com> | 2016-05-24 15:40:31 +0200 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2016-05-24 15:40:31 +0200 |
commit | 99eabe39481bd94f9dbf455d615d38c2b6f87e17 (patch) | |
tree | 82dbacfc9e802dc3e15587d75e85a9ddebd13d77 | |
parent | 5d4bc8b44194fc9ce624ca3016e646e555e0aa2a (diff) | |
download | merchant-99eabe39481bd94f9dbf455d615d38c2b6f87e17.tar.gz merchant-99eabe39481bd94f9dbf455d615d38c2b6f87e17.tar.bz2 merchant-99eabe39481bd94f9dbf455d615d38c2b6f87e17.zip |
cancel timeout task
-rw-r--r-- | src/backend/taler-merchant-httpd_pay.c | 6 |
1 files changed, 6 insertions, 0 deletions
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;i<pc->coins_cnt;i++) { |