diff options
author | Christian Grothoff <christian@grothoff.org> | 2016-08-22 12:49:56 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2016-08-22 12:49:56 +0000 |
commit | 9c00e8239e2830a104fd97f5e93ddfc48227ca08 (patch) | |
tree | e86665abf07b82ddde6f8aa5d4511e0b3d9b74a3 /src/statistics/statistics_api.c | |
parent | ce1a6574b9f59807b1751ed2f5b85bdc70c6aef0 (diff) |
-fix shutdown issue
Diffstat (limited to 'src/statistics/statistics_api.c')
-rw-r--r-- | src/statistics/statistics_api.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/statistics/statistics_api.c b/src/statistics/statistics_api.c index acaa1cc456..f72c8525bb 100644 --- a/src/statistics/statistics_api.c +++ b/src/statistics/statistics_api.c @@ -921,6 +921,7 @@ GNUNET_STATISTICS_destroy (struct GNUNET_STATISTICS_Handle *h, return; GNUNET_assert (GNUNET_NO == h->do_destroy); /* Don't call twice. */ if ( (sync_first) && + (0 != GNUNET_MQ_get_length (h->mq)) && (GNUNET_YES == try_connect (h)) ) { if ( (NULL != h->current) && |