diff options
author | Christian Grothoff <christian@grothoff.org> | 2016-04-30 08:17:37 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2016-04-30 08:17:37 +0000 |
commit | 95f9076a2139f5fb042b944a0658b6cda2fa35db (patch) | |
tree | b0826a2a1dcf812e6b4450fe6b05d47cd53ae49d /src/dht/gnunet-service-dht_neighbours.c | |
parent | 7746f68db77b9ca3c4aaca24ab2ce5253461240b (diff) | |
download | gnunet-95f9076a2139f5fb042b944a0658b6cda2fa35db.tar.gz gnunet-95f9076a2139f5fb042b944a0658b6cda2fa35db.zip |
implementing new scheduler shutdown semantics
Diffstat (limited to 'src/dht/gnunet-service-dht_neighbours.c')
-rw-r--r-- | src/dht/gnunet-service-dht_neighbours.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/dht/gnunet-service-dht_neighbours.c b/src/dht/gnunet-service-dht_neighbours.c index d82effb34..8ab39c9aa 100644 --- a/src/dht/gnunet-service-dht_neighbours.c +++ b/src/dht/gnunet-service-dht_neighbours.c | |||
@@ -712,12 +712,8 @@ send_find_peer_message (void *cls) | |||
712 | struct GNUNET_TIME_Relative next_send_time; | 712 | struct GNUNET_TIME_Relative next_send_time; |
713 | struct BloomConstructorContext bcc; | 713 | struct BloomConstructorContext bcc; |
714 | struct GNUNET_CONTAINER_BloomFilter *peer_bf; | 714 | struct GNUNET_CONTAINER_BloomFilter *peer_bf; |
715 | const struct GNUNET_SCHEDULER_TaskContext *tc; | ||
716 | 715 | ||
717 | find_peer_task = NULL; | 716 | find_peer_task = NULL; |
718 | tc = GNUNET_SCHEDULER_get_task_context (); | ||
719 | if ((tc->reason & GNUNET_SCHEDULER_REASON_SHUTDOWN) != 0) | ||
720 | return; | ||
721 | if (newly_found_peers > bucket_size) | 717 | if (newly_found_peers > bucket_size) |
722 | { | 718 | { |
723 | /* If we are finding many peers already, no need to send out our request right now! */ | 719 | /* If we are finding many peers already, no need to send out our request right now! */ |
@@ -2443,6 +2439,7 @@ GDS_NEIGHBOURS_done () | |||
2443 | } | 2439 | } |
2444 | } | 2440 | } |
2445 | 2441 | ||
2442 | |||
2446 | /** | 2443 | /** |
2447 | * Get the ID of the local node. | 2444 | * Get the ID of the local node. |
2448 | * | 2445 | * |