From 84a14eaa9838156ef0fbce4f6e92fc3b01a9d646 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 19 Jun 2016 22:39:09 +0000 Subject: [PATCH] -assert on task --- src/dht/gnunet-service-dht_neighbours.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/dht/gnunet-service-dht_neighbours.c b/src/dht/gnunet-service-dht_neighbours.c index 8ab39c9aa..773ad8983 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); } -- 2.25.1