aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 }