summaryrefslogtreecommitdiff
path: root/src/backend/taler-merchant-httpd_pay.c
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2016-05-26 17:12:08 +0200
committerFlorian Dold <florian.dold@gmail.com>2016-05-26 17:12:16 +0200
commitb7459d4b88fd0e091da097d8f727c6ab42e7d17c (patch)
treef622c6e352643116b43504e0be2c1a47832e5a60 /src/backend/taler-merchant-httpd_pay.c
parentb7f750950002474cb715fcb6ad2ac68d9551d6a7 (diff)
downloadmerchant-b7459d4b88fd0e091da097d8f727c6ab42e7d17c.tar.gz
merchant-b7459d4b88fd0e091da097d8f727c6ab42e7d17c.tar.bz2
merchant-b7459d4b88fd0e091da097d8f727c6ab42e7d17c.zip
actually store timeout task handle
Diffstat (limited to 'src/backend/taler-merchant-httpd_pay.c')
-rw-r--r--src/backend/taler-merchant-httpd_pay.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/backend/taler-merchant-httpd_pay.c b/src/backend/taler-merchant-httpd_pay.c
index 55a0c86d..1ab5a114 100644
--- 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;
}