From 5e6f148db58d948828e39499898539767f5721d3 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Wed, 20 Mar 2013 13:14:54 +0000 Subject: -do not call get callback after get_cancel --- src/statistics/statistics_api.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/statistics/statistics_api.c') 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) if (NULL != (c = h->current)) { h->current = NULL; - if (NULL != c->cont) + if ( (NULL != c->cont) && + (GNUNET_YES != c->aborted) ) c->cont (c->cls, GNUNET_SYSERR); free_action_item (c); } -- cgit v1.2.3