diff options
author | Bart Polot <bart@net.in.tum.de> | 2013-03-05 15:06:58 +0000 |
---|---|---|
committer | Bart Polot <bart@net.in.tum.de> | 2013-03-05 15:06:58 +0000 |
commit | 2e5a4c1d125b7a5d9896da0fb507124271078da2 (patch) | |
tree | 5f305fe275a2e5af6f5a6deb5b2c1804bceda1ba /src/dht | |
parent | 9dd0d8bfcff777e2f53922eb10445ac29bc6afc2 (diff) | |
download | gnunet-2e5a4c1d125b7a5d9896da0fb507124271078da2.tar.gz gnunet-2e5a4c1d125b7a5d9896da0fb507124271078da2.zip |
- dont even start a FIND_PEER if TRY_CONNECT is disabled
Diffstat (limited to 'src/dht')
-rw-r--r-- | src/dht/gnunet-service-dht_neighbours.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/dht/gnunet-service-dht_neighbours.c b/src/dht/gnunet-service-dht_neighbours.c index f0e18f48f..01fc4c431 100644 --- a/src/dht/gnunet-service-dht_neighbours.c +++ b/src/dht/gnunet-service-dht_neighbours.c | |||
@@ -666,7 +666,8 @@ handle_core_connect (void *cls, const struct GNUNET_PeerIdentity *peer, | |||
666 | GNUNET_CONTAINER_multihashmap_put (all_known_peers, | 666 | GNUNET_CONTAINER_multihashmap_put (all_known_peers, |
667 | &peer->hashPubKey, ret, | 667 | &peer->hashPubKey, ret, |
668 | GNUNET_CONTAINER_MULTIHASHMAPOPTION_UNIQUE_ONLY)); | 668 | GNUNET_CONTAINER_MULTIHASHMAPOPTION_UNIQUE_ONLY)); |
669 | if (1 == GNUNET_CONTAINER_multihashmap_size (all_known_peers)) | 669 | if (1 == GNUNET_CONTAINER_multihashmap_size (all_known_peers) && |
670 | (GNUNET_YES != disable_try_connect)) | ||
670 | { | 671 | { |
671 | /* got a first connection, good time to start with FIND PEER requests... */ | 672 | /* got a first connection, good time to start with FIND PEER requests... */ |
672 | find_peer_task = GNUNET_SCHEDULER_add_now (&send_find_peer_message, NULL); | 673 | find_peer_task = GNUNET_SCHEDULER_add_now (&send_find_peer_message, NULL); |