diff options
author | Florian Dold <florian.dold@gmail.com> | 2016-05-26 17:12:08 +0200 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2016-05-26 17:12:16 +0200 |
commit | b7459d4b88fd0e091da097d8f727c6ab42e7d17c (patch) | |
tree | f622c6e352643116b43504e0be2c1a47832e5a60 /src/backend/taler-merchant-httpd_pay.c | |
parent | b7f750950002474cb715fcb6ad2ac68d9551d6a7 (diff) | |
download | merchant-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.c | 5 |
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; } |