gnunet-svn
[Top][All Lists]
Advanced

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

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


From: gnunet
Subject: [GNUnet-SVN] r32989 - gnunet/src/mesh
Date: Wed, 9 Apr 2014 13:48:08 +0200

Author: bartpolot
Date: 2014-04-09 13:48:08 +0200 (Wed, 09 Apr 2014)
New Revision: 32989

Modified:
   gnunet/src/mesh/gnunet-service-mesh_peer.c
Log:
- just create one connection, from smaller to bigger ID

Modified: gnunet/src/mesh/gnunet-service-mesh_peer.c
===================================================================
--- gnunet/src/mesh/gnunet-service-mesh_peer.c  2014-04-09 10:58:14 UTC (rev 
32988)
+++ gnunet/src/mesh/gnunet-service-mesh_peer.c  2014-04-09 11:48:08 UTC (rev 
32989)
@@ -302,8 +302,11 @@
 
   mp->connections = GNUNET_CONTAINER_multihashmap_create (32, GNUNET_YES);
 
-  if (NULL != GMP_get_tunnel (mp))
+  if (NULL != GMP_get_tunnel (mp) &&
+      0 > GNUNET_CRYPTO_cmp_peer_identity (&my_full_id, peer))
+  {
     GMP_connect (mp);
+  }
 
   return;
 }
@@ -1356,7 +1359,7 @@
                                      GNUNET_NO, /* For header-only out 
notification */
                                      core_handlers);    /* Register these 
handlers */
   if (GNUNET_YES !=
-    GNUNET_CONFIGURATION_get_value_yesno (c, "MESH", "DISABLE_TRY_CONNECT"))
+      GNUNET_CONFIGURATION_get_value_yesno (c, "MESH", "DISABLE_TRY_CONNECT"))
   {
     transport_handle = GNUNET_TRANSPORT_connect (c, &my_full_id, NULL, /* cls 
*/
                                                  /* Notify callbacks */




reply via email to

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