aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/statistics/gnunet-statistics.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/statistics/gnunet-statistics.c b/src/statistics/gnunet-statistics.c
index 2de58a070..c4012e31b 100644
--- a/src/statistics/gnunet-statistics.c
+++ b/src/statistics/gnunet-statistics.c
@@ -162,9 +162,9 @@ shutdown_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
162 162
163 if (NULL == h) 163 if (NULL == h)
164 return; 164 return;
165 if (NULL != subsystem && NULL != name) 165 if (GNUNET_YES == watch)
166 GNUNET_assert (GNUNET_OK == 166 GNUNET_assert (GNUNET_OK ==
167 GNUNET_STATISTICS_watch_cancel (h, subsystem, name, &printer, h)); 167 GNUNET_STATISTICS_watch_cancel (h, subsystem, name, &printer, h));
168 GNUNET_STATISTICS_destroy (h, GNUNET_NO); 168 GNUNET_STATISTICS_destroy (h, GNUNET_NO);
169 h = NULL; 169 h = NULL;
170} 170}