aboutsummaryrefslogtreecommitdiff
path: root/src/statistics
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2010-03-12 13:29:05 +0000
committerChristian Grothoff <christian@grothoff.org>2010-03-12 13:29:05 +0000
commita6f43190ab793b3487da2133735e166e337000c4 (patch)
treefc2dacc6a36f3ec04cf86a14cdea9c5bdf45274f /src/statistics
parent61cfd3340e67672f351ab92dab7da72dca058c79 (diff)
downloadgnunet-a6f43190ab793b3487da2133735e166e337000c4.tar.gz
gnunet-a6f43190ab793b3487da2133735e166e337000c4.zip
cancel pending write if we are just dead anyway
Diffstat (limited to 'src/statistics')
-rw-r--r--src/statistics/statistics_api.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/statistics/statistics_api.c b/src/statistics/statistics_api.c
index e9ebe7fa6..c8a341b0c 100644
--- a/src/statistics/statistics_api.c
+++ b/src/statistics/statistics_api.c
@@ -304,7 +304,7 @@ receive_stats (void *cls, const struct GNUNET_MessageHeader *msg)
304 { 304 {
305 if (NULL != h->client) 305 if (NULL != h->client)
306 { 306 {
307 GNUNET_CLIENT_disconnect (h->client); 307 GNUNET_CLIENT_disconnect (h->client, GNUNET_NO);
308 h->client = NULL; 308 h->client = NULL;
309 } 309 }
310#if DEBUG_STATISTICS 310#if DEBUG_STATISTICS
@@ -342,7 +342,7 @@ receive_stats (void *cls, const struct GNUNET_MessageHeader *msg)
342 } 342 }
343 if (NULL != h->client) 343 if (NULL != h->client)
344 { 344 {
345 GNUNET_CLIENT_disconnect (h->client); 345 GNUNET_CLIENT_disconnect (h->client, GNUNET_NO);
346 h->client = NULL; 346 h->client = NULL;
347 } 347 }
348 finish (h, GNUNET_SYSERR); 348 finish (h, GNUNET_SYSERR);
@@ -579,7 +579,7 @@ GNUNET_STATISTICS_destroy (struct GNUNET_STATISTICS_Handle *h,
579 } 579 }
580 if (h->client != NULL) 580 if (h->client != NULL)
581 { 581 {
582 GNUNET_CLIENT_disconnect (h->client); 582 GNUNET_CLIENT_disconnect (h->client, GNUNET_YES);
583 h->client = NULL; 583 h->client = NULL;
584 } 584 }
585 GNUNET_free (h->subsystem); 585 GNUNET_free (h->subsystem);