summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSupriti Singh <supritisingh08@gmail.com>2014-08-22 20:04:23 +0000
committerSupriti Singh <supritisingh08@gmail.com>2014-08-22 20:04:23 +0000
commita46ce788bb0c0416d018f0b5d9c026c2f4951d31 (patch)
treed2459ca1827631ed0b745a0d60079766cd81a107 /src
parent2a6e6217e5ffb1470bd0db7c7841231f9b3d0af8 (diff)
Check if task is dead
Diffstat (limited to 'src')
-rw-r--r--src/dht/gnunet-service-xdht_neighbours.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/dht/gnunet-service-xdht_neighbours.c b/src/dht/gnunet-service-xdht_neighbours.c
index 70d3e74d2..8d5cd776d 100644
--- a/src/dht/gnunet-service-xdht_neighbours.c
+++ b/src/dht/gnunet-service-xdht_neighbours.c
@@ -5126,7 +5126,8 @@ handle_dht_p2p_verify_successor_result(void *cls,
// GNUNET_TIME_STD_BACKOFF(verify_successor_next_send_time);
// Cancel Retry Task
- GNUNET_SCHEDULER_cancel(send_verify_successor_retry_task);
+ if (GNUNET_SCHEDULER_NO_TASK != send_verify_successor_retry_task)
+ GNUNET_SCHEDULER_cancel(send_verify_successor_retry_task);
compare_and_update_successor (current_successor,
probable_successor, trail, trail_length);