diff options
author | Christian Grothoff <christian@grothoff.org> | 2019-11-30 00:53:58 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2019-11-30 00:53:58 +0100 |
commit | 6510f9aa481e037fcc5c9b1e13cc9eb0526918e7 (patch) | |
tree | 6a8c3e325f0ba66e806979b72269f0b0506d817d /src/sync/sync-httpd_backup_post.c | |
parent | 35dc96ac784586d0c137a43ff90eea7b7b253d7a (diff) | |
download | sync-6510f9aa481e037fcc5c9b1e13cc9eb0526918e7.tar.gz sync-6510f9aa481e037fcc5c9b1e13cc9eb0526918e7.tar.bz2 sync-6510f9aa481e037fcc5c9b1e13cc9eb0526918e7.zip |
test payment required by client
Diffstat (limited to 'src/sync/sync-httpd_backup_post.c')
-rw-r--r-- | src/sync/sync-httpd_backup_post.c | 9 |
1 files changed, 6 insertions, 3 deletions
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) && |