diff options
author | bartpolot <bartpolot@140774ce-b5e7-0310-ab8b-a85725594a96> | 2012-12-21 01:35:23 +0000 |
---|---|---|
committer | bartpolot <bartpolot@140774ce-b5e7-0310-ab8b-a85725594a96> | 2012-12-21 01:35:23 +0000 |
commit | 10eb2617dcd9633de1ee9af3e0cf7d16c7763ff8 (patch) | |
tree | 67b166aa0ba3cf3e91a0873221f2e5ee3239d723 /src/mesh/gnunet-service-mesh.c | |
parent | 2877846414d6682ccc0353efc39dd4076ff8e316 (diff) |
- dont destroy tunnels with local clients
git-svn-id: https://gnunet.org/svn/gnunet@25606 140774ce-b5e7-0310-ab8b-a85725594a96
Diffstat (limited to 'src/mesh/gnunet-service-mesh.c')
-rw-r--r-- | src/mesh/gnunet-service-mesh.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mesh/gnunet-service-mesh.c b/src/mesh/gnunet-service-mesh.c index 7ecff0a839..85292f8f63 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, if (pid != parent) { tree_del_peer (t->tree, pid, &tunnel_child_removed, t); - if (tree_count_children(t->tree) > 0 || NULL != t->owner) + if (tree_count_children(t->tree) > 0 || + NULL != t->owner || + t->nclients > 0) return GNUNET_OK; } if (t->local_tid_dest >= GNUNET_MESH_LOCAL_TUNNEL_ID_SERV) |