aboutsummaryrefslogtreecommitdiff
path: root/src/mesh
diff options
context:
space:
mode:
authorBart Polot <bart@net.in.tum.de>2012-12-21 01:35:23 +0000
committerBart Polot <bart@net.in.tum.de>2012-12-21 01:35:23 +0000
commit9a4e37f4af4eb47313d62ff1c6d6a0f5b42c82ed (patch)
tree67b166aa0ba3cf3e91a0873221f2e5ee3239d723 /src/mesh
parent1277a7838c1b63f3752290a77284967044226dbb (diff)
downloadgnunet-9a4e37f4af4eb47313d62ff1c6d6a0f5b42c82ed.tar.gz
gnunet-9a4e37f4af4eb47313d62ff1c6d6a0f5b42c82ed.zip
- dont destroy tunnels with local clients
Diffstat (limited to 'src/mesh')
-rw-r--r--src/mesh/gnunet-service-mesh.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mesh/gnunet-service-mesh.c b/src/mesh/gnunet-service-mesh.c
index 7ecff0a83..85292f8f6 100644
--- a/src/mesh/gnunet-service-mesh.c
+++ b/src/mesh/gnunet-service-mesh.c
@@ -5846,7 +5846,9 @@ handle_mesh_tunnel_destroy (void *cls, const struct GNUNET_PeerIdentity *peer,
5846 if (pid != parent) 5846 if (pid != parent)
5847 { 5847 {
5848 tree_del_peer (t->tree, pid, &tunnel_child_removed, t); 5848 tree_del_peer (t->tree, pid, &tunnel_child_removed, t);
5849 if (tree_count_children(t->tree) > 0 || NULL != t->owner) 5849 if (tree_count_children(t->tree) > 0 ||
5850 NULL != t->owner ||
5851 t->nclients > 0)
5850 return GNUNET_OK; 5852 return GNUNET_OK;
5851 } 5853 }
5852 if (t->local_tid_dest >= GNUNET_MESH_LOCAL_TUNNEL_ID_SERV) 5854 if (t->local_tid_dest >= GNUNET_MESH_LOCAL_TUNNEL_ID_SERV)