diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-06-07 10:23:28 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-06-07 10:23:28 +0000 |
commit | 8df863fc902544f8022da6e7f3b2ec2f651432c7 (patch) | |
tree | 0fa4ab34179d3ba74559b6e8b75084d6bb06f2ee /src/core | |
parent | f2527711cee809d7b3608b24176e107550de193c (diff) | |
download | gnunet-8df863fc902544f8022da6e7f3b2ec2f651432c7.tar.gz gnunet-8df863fc902544f8022da6e7f3b2ec2f651432c7.zip |
fix
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/gnunet-service-core.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/gnunet-service-core.c b/src/core/gnunet-service-core.c index 90801f34a..4f02d0fc2 100644 --- a/src/core/gnunet-service-core.c +++ b/src/core/gnunet-service-core.c | |||
@@ -4577,6 +4577,8 @@ cleaning_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
4577 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 4577 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
4578 | "Core service shutting down.\n"); | 4578 | "Core service shutting down.\n"); |
4579 | #endif | 4579 | #endif |
4580 | GNUNET_TRANSPORT_disconnect (transport); | ||
4581 | transport = NULL; | ||
4580 | GNUNET_CONTAINER_multihashmap_iterate (neighbours, | 4582 | GNUNET_CONTAINER_multihashmap_iterate (neighbours, |
4581 | &free_neighbour_helper, | 4583 | &free_neighbour_helper, |
4582 | NULL); | 4584 | NULL); |
@@ -4584,8 +4586,6 @@ cleaning_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
4584 | neighbours = NULL; | 4586 | neighbours = NULL; |
4585 | GNUNET_STATISTICS_set (stats, gettext_noop ("# neighbour entries allocated"), 0, GNUNET_NO); | 4587 | GNUNET_STATISTICS_set (stats, gettext_noop ("# neighbour entries allocated"), 0, GNUNET_NO); |
4586 | GNUNET_assert (transport != NULL); | 4588 | GNUNET_assert (transport != NULL); |
4587 | GNUNET_TRANSPORT_disconnect (transport); | ||
4588 | transport = NULL; | ||
4589 | GNUNET_SERVER_notification_context_destroy (notifier); | 4589 | GNUNET_SERVER_notification_context_destroy (notifier); |
4590 | notifier = NULL; | 4590 | notifier = NULL; |
4591 | while (NULL != (c = clients)) | 4591 | while (NULL != (c = clients)) |