diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2014-09-03 12:10:30 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2014-09-03 12:10:30 +0000 |
commit | b9a9a558201588dff7f6c55c174464e317dd10fe (patch) | |
tree | c5653ad56cd66c04d961ed50f69002c4020c96fc /src/transport/gnunet-service-transport_neighbours.c | |
parent | 057e1a35d8663d4139dc0af4de3404dba8a69eb7 (diff) | |
download | gnunet-b9a9a558201588dff7f6c55c174464e317dd10fe.tar.gz gnunet-b9a9a558201588dff7f6c55c174464e317dd10fe.zip |
fix for neigbours created multiple times
Diffstat (limited to 'src/transport/gnunet-service-transport_neighbours.c')
-rw-r--r-- | src/transport/gnunet-service-transport_neighbours.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/transport/gnunet-service-transport_neighbours.c b/src/transport/gnunet-service-transport_neighbours.c index 6867251f3..adf39d5bc 100644 --- a/src/transport/gnunet-service-transport_neighbours.c +++ b/src/transport/gnunet-service-transport_neighbours.c | |||
@@ -2199,6 +2199,9 @@ try_connect_bl_check_cont (void *cls, | |||
2199 | } | 2199 | } |
2200 | 2200 | ||
2201 | /* Setup a new neighbour */ | 2201 | /* Setup a new neighbour */ |
2202 | if (NULL != (n = lookup_neighbour(peer))) | ||
2203 | return; /* The neighbor was created in the meantime while waited for BL clients */ | ||
2204 | |||
2202 | n = setup_neighbour (peer); | 2205 | n = setup_neighbour (peer); |
2203 | 2206 | ||
2204 | /* Request address suggestions for this peer */ | 2207 | /* Request address suggestions for this peer */ |