diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-09-11 14:34:54 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-09-11 14:34:54 +0000 |
commit | 615b36e986bb841326ebb1ef45188b24309d1f02 (patch) | |
tree | 54dddc9dc8dd043c647fca05164717eea8f6f397 /src/statistics | |
parent | 449eb7bf6003118dac5ea362086fd89ce5dbe79a (diff) | |
download | gnunet-615b36e986bb841326ebb1ef45188b24309d1f02.tar.gz gnunet-615b36e986bb841326ebb1ef45188b24309d1f02.zip |
-fix assertion
Diffstat (limited to 'src/statistics')
-rw-r--r-- | src/statistics/gnunet-statistics.c | 4 |
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 | } |