gnunet-svn
[Top][All Lists]
Advanced

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

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


From: gnunet
Subject: [GNUnet-SVN] r25599 - gnunet/src/mesh
Date: Thu, 20 Dec 2012 18:16:01 +0100

Author: bartpolot
Date: 2012-12-20 18:16:01 +0100 (Thu, 20 Dec 2012)
New Revision: 25599

Modified:
   gnunet/src/mesh/mesh_tunnel_tree.c
Log:
- dont destroy self

Modified: gnunet/src/mesh/mesh_tunnel_tree.c
===================================================================
--- gnunet/src/mesh/mesh_tunnel_tree.c  2012-12-20 17:03:22 UTC (rev 25598)
+++ gnunet/src/mesh/mesh_tunnel_tree.c  2012-12-20 17:16:01 UTC (rev 25599)
@@ -765,7 +765,9 @@
   GNUNET_CONTAINER_DLL_remove (parent->children_head, parent->children_tail, 
n);
   n->parent = NULL;
 
-  while (MESH_PEER_RELAY == parent->status && NULL == parent->children_head)
+  while (MESH_PEER_RELAY == parent->status &&
+         NULL == parent->children_head &&
+         parent->peer != t->me->peer)
   {
 #if MESH_TREE_DEBUG
     GNUNET_PEER_resolve (parent->peer, &id);
@@ -1066,7 +1068,7 @@
     GNUNET_break (0);
     return GNUNET_YES;
   }
-  GNUNET_break_op (NULL == n->children_head);
+  GNUNET_break (NULL == n->children_head);
   tree_node_destroy (n);
   if (NULL == t->root->children_head && t->me != t->root)
   {




reply via email to

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