[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [taler-merchant] 01/02: Killing services when shutting down
From: |
gnunet |
Subject: |
[GNUnet-SVN] [taler-merchant] 01/02: Killing services when shutting down payments generator. |
Date: |
Thu, 09 Mar 2017 15:04:28 +0100 |
This is an automated email from the git hooks/post-receive script.
marcello pushed a commit to branch master
in repository merchant.
commit 8d8a83b88edaf4341cab5ea7c4bee8744e7599c3
Author: Marcello Stanisci <address@hidden>
AuthorDate: Thu Mar 9 14:33:26 2017 +0100
Killing services when shutting down payments generator.
---
src/samples/generate_payments.c | 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+)
diff --git a/src/samples/generate_payments.c b/src/samples/generate_payments.c
index 4ebac06..2894e95 100644
--- 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.
*
--
To stop receiving notification emails like this one, please contact
address@hidden