aboutsummaryrefslogtreecommitdiff
path: root/src/topology
diff options
context:
space:
mode:
authorgrothoff <grothoff@140774ce-b5e7-0310-ab8b-a85725594a96>2012-04-24 12:51:16 +0000
committergrothoff <grothoff@140774ce-b5e7-0310-ab8b-a85725594a96>2012-04-24 12:51:16 +0000
commitadb68a0a403396521fd580e68e4124adc70a66a9 (patch)
tree8fa4ea28a4694e99cc4409a99e306715f8b0decf /src/topology
parent354e92272596a2adbc7b022a157cac14ad5f8f7e (diff)
-fix
git-svn-id: https://gnunet.org/svn/gnunet@21131 140774ce-b5e7-0310-ab8b-a85725594a96
Diffstat (limited to 'src/topology')
-rw-r--r--src/topology/gnunet-daemon-topology.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/topology/gnunet-daemon-topology.c b/src/topology/gnunet-daemon-topology.c
index e7860ac941..a9dbd3573b 100644
--- a/src/topology/gnunet-daemon-topology.c
+++ b/src/topology/gnunet-daemon-topology.c
@@ -1186,11 +1186,6 @@ cleaning_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
GNUNET_PEERINFO_notify_cancel (peerinfo_notify);
peerinfo_notify = NULL;
}
- if (GNUNET_SCHEDULER_NO_TASK != add_task)
- {
- GNUNET_SCHEDULER_cancel (add_task);
- add_task = GNUNET_SCHEDULER_NO_TASK;
- }
GNUNET_TRANSPORT_disconnect (transport);
transport = NULL;
if (handle != NULL)
@@ -1199,6 +1194,11 @@ cleaning_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
handle = NULL;
}
whitelist_peers ();
+ if (GNUNET_SCHEDULER_NO_TASK != add_task)
+ {
+ GNUNET_SCHEDULER_cancel (add_task);
+ add_task = GNUNET_SCHEDULER_NO_TASK;
+ }
GNUNET_CONTAINER_multihashmap_iterate (peers, &free_peer, NULL);
GNUNET_CONTAINER_multihashmap_destroy (peers);
peers = NULL;