aboutsummaryrefslogtreecommitdiff
path: root/src/statistics/statistics_api.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-03-20 13:14:54 +0000
committerChristian Grothoff <christian@grothoff.org>2013-03-20 13:14:54 +0000
commit5e6f148db58d948828e39499898539767f5721d3 (patch)
tree7ce11d6d5b29512ec17d69e9cbcf288408146613 /src/statistics/statistics_api.c
parenta2b62e226fbcadcd90f135b7418f8e2982b9907b (diff)
downloadgnunet-5e6f148db58d948828e39499898539767f5721d3.tar.gz
gnunet-5e6f148db58d948828e39499898539767f5721d3.zip
-do not call get callback after get_cancel
Diffstat (limited to 'src/statistics/statistics_api.c')
-rw-r--r--src/statistics/statistics_api.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/statistics/statistics_api.c b/src/statistics/statistics_api.c
index 7bdd6a5c6..9beee5619 100644
--- a/src/statistics/statistics_api.c
+++ b/src/statistics/statistics_api.c
@@ -399,7 +399,8 @@ do_disconnect (struct GNUNET_STATISTICS_Handle *h)
399 if (NULL != (c = h->current)) 399 if (NULL != (c = h->current))
400 { 400 {
401 h->current = NULL; 401 h->current = NULL;
402 if (NULL != c->cont) 402 if ( (NULL != c->cont) &&
403 (GNUNET_YES != c->aborted) )
403 c->cont (c->cls, GNUNET_SYSERR); 404 c->cont (c->cls, GNUNET_SYSERR);
404 free_action_item (c); 405 free_action_item (c);
405 } 406 }