From 6510f9aa481e037fcc5c9b1e13cc9eb0526918e7 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sat, 30 Nov 2019 00:53:58 +0100 Subject: test payment required by client --- src/sync/sync-httpd_backup_post.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/sync/sync-httpd_backup_post.c') diff --git a/src/sync/sync-httpd_backup_post.c b/src/sync/sync-httpd_backup_post.c index f0acc5a..251dc10 100644 --- a/src/sync/sync-httpd_backup_post.c +++ b/src/sync/sync-httpd_backup_post.c @@ -265,12 +265,12 @@ proposal_cb (void *cls, enum SYNC_DB_QueryStatus qs; bc->po = NULL; - GNUNET_CONTAINER_DLL_remove (bc_head, - bc_tail, - bc); GNUNET_log (GNUNET_ERROR_TYPE_INFO, "Resuming connection with order `%s'\n", order_id); + GNUNET_CONTAINER_DLL_remove (bc_head, + bc_tail, + bc); MHD_resume_connection (bc->con); SH_trigger_daemon (); if (MHD_HTTP_OK != http_status) @@ -381,6 +381,9 @@ check_payment_cb (void *cls, GNUNET_log (GNUNET_ERROR_TYPE_INFO, "Payment status checked: %s\n", paid ? "paid" : "unpaid"); + GNUNET_CONTAINER_DLL_remove (bc_head, + bc_tail, + bc); MHD_resume_connection (bc->con); SH_trigger_daemon (); GNUNET_break ( (GNUNET_NO == refunded) && -- cgit v1.2.3