aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2016-06-19 22:39:09 +0000
committerChristian Grothoff <christian@grothoff.org>2016-06-19 22:39:09 +0000
commit84a14eaa9838156ef0fbce4f6e92fc3b01a9d646 (patch)
tree08d772a1ffe869bd94e10a0354ae33be9d12e26f
parent282b5b400beea9c381ad0959624fd92f4c0b8e29 (diff)
-assert on task
-rw-r--r--src/dht/gnunet-service-dht_neighbours.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/dht/gnunet-service-dht_neighbours.c b/src/dht/gnunet-service-dht_neighbours.c
index 8ab39c9aaf..773ad8983c 100644
--- a/src/dht/gnunet-service-dht_neighbours.c
+++ b/src/dht/gnunet-service-dht_neighbours.c
@@ -752,8 +752,10 @@ send_find_peer_message (void *cls)
DHT_MAXIMUM_FIND_PEER_INTERVAL.rel_value_us /
(newly_found_peers + 1));
newly_found_peers = 0;
+ GNUNET_assert (NULL == find_peer_task);
find_peer_task =
- GNUNET_SCHEDULER_add_delayed (next_send_time, &send_find_peer_message,
+ GNUNET_SCHEDULER_add_delayed (next_send_time,
+ &send_find_peer_message,
NULL);
}
@@ -821,6 +823,7 @@ handle_core_connect (void *cls,
(GNUNET_YES != disable_try_connect))
{
/* got a first connection, good time to start with FIND PEER requests... */
+ GNUNET_assert (NULL == find_peer_task);
find_peer_task = GNUNET_SCHEDULER_add_now (&send_find_peer_message,
NULL);
}