merchant

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

commit 8d8a83b88edaf4341cab5ea7c4bee8744e7599c3
parent 4422d5d869c0bfb9f8577419c8dc5b007106bf02
Author: Marcello Stanisci <marcello.stanisci@inria.fr>
Date:   Thu,  9 Mar 2017 14:33:26 +0100

Killing services when shutting down payments generator.

Diffstat:
Msrc/samples/generate_payments.c | 24++++++++++++++++++++++++
1 file changed, 24 insertions(+), 0 deletions(-)

diff --git a/src/samples/generate_payments.c b/src/samples/generate_payments.c @@ -330,7 +330,31 @@ do_shutdown (void *cls) break; } + if (NULL != is->task) + { + GNUNET_SCHEDULER_cancel (is->task); + is->task = NULL; + } + GNUNET_free (is); + if (NULL != exchange) + { + TALER_EXCHANGE_disconnect (exchange); + exchange = NULL; + } + if (NULL != ctx) + { + GNUNET_CURL_fini (ctx); + ctx = NULL; + } + if (NULL != rc) + { + GNUNET_CURL_gnunet_rc_destroy (rc); + rc = NULL; + } + + GNUNET_CONFIGURATION_destroy (cfg); } + /** * Main function that will be run by the scheduler. *