aboutsummaryrefslogtreecommitdiff
path: root/src/statistics
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-12-17 19:02:42 +0000
committerChristian Grothoff <christian@grothoff.org>2011-12-17 19:02:42 +0000
commit9705390d829124a3b7d556a901cd4bca7bfff5d0 (patch)
treec0e30347764dd62ef8587cb0aee330a0f452586a /src/statistics
parent27beb19217800db9c7919436223301788dcd1ac5 (diff)
downloadgnunet-9705390d829124a3b7d556a901cd4bca7bfff5d0.tar.gz
gnunet-9705390d829124a3b7d556a901cd4bca7bfff5d0.zip
-another stats crash
Diffstat (limited to 'src/statistics')
-rw-r--r--src/statistics/statistics_api.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/statistics/statistics_api.c b/src/statistics/statistics_api.c
index 557694cfb..ca435a371 100644
--- a/src/statistics/statistics_api.c
+++ b/src/statistics/statistics_api.c
@@ -333,8 +333,11 @@ do_disconnect (struct GNUNET_STATISTICS_Handle *h)
333 GNUNET_CLIENT_notify_transmit_ready_cancel (h->th); 333 GNUNET_CLIENT_notify_transmit_ready_cancel (h->th);
334 h->th = NULL; 334 h->th = NULL;
335 } 335 }
336 GNUNET_CLIENT_disconnect (h->client, GNUNET_NO); 336 if (NULL != h->client)
337 h->client = NULL; 337 {
338 GNUNET_CLIENT_disconnect (h->client, GNUNET_NO);
339 h->client = NULL;
340 }
338 h->receiving = GNUNET_NO; 341 h->receiving = GNUNET_NO;
339 if (NULL != (c = h->current)) 342 if (NULL != (c = h->current))
340 { 343 {