aboutsummaryrefslogtreecommitdiff
path: root/src/statistics
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-12-19 21:04:43 +0000
committerChristian Grothoff <christian@grothoff.org>2011-12-19 21:04:43 +0000
commit158c660519935bdec0a17310d79ea5a71eb6913e (patch)
treeeb4cf9a9ef1b678d5dfe9dc5e4fafe2858afe1f3 /src/statistics
parentee1e3f6aa111940f28c4f75f5a4b0a3a0d2c4527 (diff)
downloadgnunet-158c660519935bdec0a17310d79ea5a71eb6913e.tar.gz
gnunet-158c660519935bdec0a17310d79ea5a71eb6913e.zip
-fix
Diffstat (limited to 'src/statistics')
-rw-r--r--src/statistics/statistics_api.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/statistics/statistics_api.c b/src/statistics/statistics_api.c
index f4f91538a..8335e9e0c 100644
--- a/src/statistics/statistics_api.c
+++ b/src/statistics/statistics_api.c
@@ -858,7 +858,10 @@ GNUNET_STATISTICS_destroy (struct GNUNET_STATISTICS_Handle *h, int sync_first)
858 if (h == NULL) 858 if (h == NULL)
859 return; 859 return;
860 if (GNUNET_SCHEDULER_NO_TASK != h->backoff_task) 860 if (GNUNET_SCHEDULER_NO_TASK != h->backoff_task)
861 {
861 GNUNET_SCHEDULER_cancel (h->backoff_task); 862 GNUNET_SCHEDULER_cancel (h->backoff_task);
863 h->backoff_task = GNUNET_SCHEDULER_NO_TASK;
864 }
862 if (sync_first) 865 if (sync_first)
863 { 866 {
864 if (h->current != NULL) 867 if (h->current != NULL)
@@ -907,11 +910,6 @@ GNUNET_STATISTICS_destroy (struct GNUNET_STATISTICS_Handle *h, int sync_first)
907 if (NULL == h->client) 910 if (NULL == h->client)
908 { 911 {
909 /* instant-connect (regardless of back-off) to submit final value */ 912 /* instant-connect (regardless of back-off) to submit final value */
910 if (GNUNET_SCHEDULER_NO_TASK != h->backoff_task)
911 {
912 GNUNET_SCHEDULER_cancel (h->backoff_task);
913 h->backoff_task = GNUNET_SCHEDULER_NO_TASK;
914 }
915 h->client = GNUNET_CLIENT_connect ("statistics", h->cfg); 913 h->client = GNUNET_CLIENT_connect ("statistics", h->cfg);
916 } 914 }
917 if (NULL != h->client) 915 if (NULL != h->client)