merchant

Merchant backend to process payments, run by merchants
Log | Files | Refs | Submodules | README | LICENSE

commit b7459d4b88fd0e091da097d8f727c6ab42e7d17c
parent b7f750950002474cb715fcb6ad2ac68d9551d6a7
Author: Florian Dold <florian.dold@gmail.com>
Date:   Thu, 26 May 2016 17:12:08 +0200

actually store timeout task handle

Diffstat:
Msrc/backend/taler-merchant-httpd_pay.c | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/backend/taler-merchant-httpd_pay.c b/src/backend/taler-merchant-httpd_pay.c @@ -662,6 +662,9 @@ handle_pay_timeout (void *cls) { struct PayContext *pc = cls; + GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, + "Resuming /pay with error after timeout\n"); + pc->timeout_task = NULL; if (NULL != pc->fo) @@ -911,7 +914,7 @@ MH_handler_pay (struct TMH_RequestHandler *rh, GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Suspending /pay handling while working with the exchange\n"); MHD_suspend_connection (connection); - GNUNET_SCHEDULER_add_delayed (PAY_TIMEOUT, handle_pay_timeout, pc); + pc->timeout_task = GNUNET_SCHEDULER_add_delayed (PAY_TIMEOUT, handle_pay_timeout, pc); json_decref (root); return MHD_YES; }