gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r32714 - gnunet/src/mesh


From: gnunet
Subject: [GNUnet-SVN] r32714 - gnunet/src/mesh
Date: Fri, 21 Mar 2014 19:44:09 +0100

Author: bartpolot
Date: 2014-03-21 19:44:09 +0100 (Fri, 21 Mar 2014)
New Revision: 32714

Modified:
   gnunet/src/mesh/gnunet-service-mesh_peer.c
Log:
- establish connections on new paths

Modified: gnunet/src/mesh/gnunet-service-mesh_peer.c
===================================================================
--- gnunet/src/mesh/gnunet-service-mesh_peer.c  2014-03-21 18:44:08 UTC (rev 
32713)
+++ gnunet/src/mesh/gnunet-service-mesh_peer.c  2014-03-21 18:44:09 UTC (rev 
32714)
@@ -1642,6 +1642,10 @@
       LOG (GNUNET_ERROR_TYPE_DEBUG, "  added\n");
       GNUNET_CONTAINER_DLL_insert_before (peer->path_head,
                                           peer->path_tail, aux, path);
+      if (NULL != peer->tunnel && 3 < GMT_count_connections (peer->tunnel))
+      {
+        GMP_connect (peer);
+      }
       return path;
     }
     else
@@ -1657,6 +1661,10 @@
   GNUNET_CONTAINER_DLL_insert_tail (peer->path_head, peer->path_tail,
                                     path);
   LOG (GNUNET_ERROR_TYPE_DEBUG, "  added last\n");
+  if (NULL != peer->tunnel && 3 < GMT_count_connections (peer->tunnel))
+  {
+    GMP_connect (peer);
+  }
   return path;
 }
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]