gnunet-svn
[Top][All Lists]
Advanced

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

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


From: gnunet
Subject: [GNUnet-SVN] r31427 - gnunet/src/mesh
Date: Mon, 16 Dec 2013 18:01:04 +0100

Author: bartpolot
Date: 2013-12-16 18:01:04 +0100 (Mon, 16 Dec 2013)
New Revision: 31427

Modified:
   gnunet/src/mesh/gnunet-service-mesh_connection.c
   gnunet/src/mesh/gnunet-service-mesh_tunnel.c
Log:
- remove connection from tunnel when no longer usable


Modified: gnunet/src/mesh/gnunet-service-mesh_connection.c
===================================================================
--- gnunet/src/mesh/gnunet-service-mesh_connection.c    2013-12-16 16:30:13 UTC 
(rev 31426)
+++ gnunet/src/mesh/gnunet-service-mesh_connection.c    2013-12-16 17:01:04 UTC 
(rev 31427)
@@ -1581,6 +1581,11 @@
   }
   c->destroy = GNUNET_YES;
   c->state = MESH_CONNECTION_DESTROYED;
+  if (NULL != c->t)
+  {
+    GMT_remove_connection (c->t);
+    c->t = NULL;
+  }
 
   return GNUNET_OK;
 }

Modified: gnunet/src/mesh/gnunet-service-mesh_tunnel.c
===================================================================
--- gnunet/src/mesh/gnunet-service-mesh_tunnel.c        2013-12-16 16:30:13 UTC 
(rev 31426)
+++ gnunet/src/mesh/gnunet-service-mesh_tunnel.c        2013-12-16 17:01:04 UTC 
(rev 31427)
@@ -1802,7 +1802,7 @@
       && GNUNET_NO == t->destroy
       && GNUNET_NO == shutting_down)
   {
-    LOG (GNUNET_ERROR_TYPE_DEBUG, "  no more connections\n");
+    LOG (GNUNET_ERROR_TYPE_DEBUG, "  no more connections, getting new ones\n");
     GMP_connect (t->peer);
     t->cstate = MESH_TUNNEL3_SEARCHING;
     return;




reply via email to

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