diff options
Diffstat (limited to 'src/dht/gnunet-service-dht.c')
-rw-r--r-- | src/dht/gnunet-service-dht.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/dht/gnunet-service-dht.c b/src/dht/gnunet-service-dht.c index 6ae56d427..4b0a290b9 100644 --- a/src/dht/gnunet-service-dht.c +++ b/src/dht/gnunet-service-dht.c | |||
@@ -382,6 +382,7 @@ shutdown_task (void *cls) | |||
382 | GNUNET_BLOCK_context_destroy (GDS_block_context); | 382 | GNUNET_BLOCK_context_destroy (GDS_block_context); |
383 | GDS_block_context = NULL; | 383 | GDS_block_context = NULL; |
384 | } | 384 | } |
385 | GDS_CLIENTS_stop (); | ||
385 | if (NULL != GDS_stats) | 386 | if (NULL != GDS_stats) |
386 | { | 387 | { |
387 | GNUNET_STATISTICS_destroy (GDS_stats, | 388 | GNUNET_STATISTICS_destroy (GDS_stats, |
@@ -393,7 +394,11 @@ shutdown_task (void *cls) | |||
393 | GNUNET_HELLO_builder_free (GDS_my_hello); | 394 | GNUNET_HELLO_builder_free (GDS_my_hello); |
394 | GDS_my_hello = NULL; | 395 | GDS_my_hello = NULL; |
395 | } | 396 | } |
396 | GDS_CLIENTS_stop (); | 397 | if (NULL != hello_task) |
398 | { | ||
399 | GNUNET_SCHEDULER_cancel (hello_task); | ||
400 | hello_task = NULL; | ||
401 | } | ||
397 | } | 402 | } |
398 | 403 | ||
399 | 404 | ||