fix for neigbours created multiple times
authorMatthias Wachs <wachs@net.in.tum.de>
Wed, 3 Sep 2014 12:10:30 +0000 (12:10 +0000)
committerMatthias Wachs <wachs@net.in.tum.de>
Wed, 3 Sep 2014 12:10:30 +0000 (12:10 +0000)
src/transport/gnunet-service-transport_neighbours.c

index 6867251f3a6d66b71ccefa9a058f13a6267f4a3b..adf39d5bcd064ee85bad818853a11749bd2587ce 100644 (file)
@@ -2199,6 +2199,9 @@ try_connect_bl_check_cont (void *cls,
   }
 
   /* Setup a new neighbour */
+  if (NULL != (n = lookup_neighbour(peer)))
+    return; /* The neighbor was created in the meantime while waited for BL clients */
+
   n = setup_neighbour (peer);
 
   /* Request address suggestions for this peer */