- fix #3364, establish a new connection to a peer when a core connection becomes...
authorBart Polot <bart@net.in.tum.de>
Tue, 8 Apr 2014 00:03:15 +0000 (00:03 +0000)
committerBart Polot <bart@net.in.tum.de>
Tue, 8 Apr 2014 00:03:15 +0000 (00:03 +0000)
src/mesh/gnunet-service-mesh_peer.c

index 607012741e954b2c4a75451e26a3a34958c2d5be..47d3151c8cf5d0ecfc65a3b2863d1dbb81812690 100644 (file)
@@ -301,6 +301,10 @@ core_connect (void *cls, const struct GNUNET_PeerIdentity *peer)
   GMP_add_path (mp, path, GNUNET_YES);
 
   mp->connections = GNUNET_CONTAINER_multihashmap_create (32, GNUNET_YES);
+
+  if (NULL != GMP_get_tunnel (peer))
+    GMP_connect (peer);
+
   return;
 }