diff options
Diffstat (limited to 'src/mesh/mesh2_api.c')
-rw-r--r-- | src/mesh/mesh2_api.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/mesh/mesh2_api.c b/src/mesh/mesh2_api.c index c07040192..bbb369c7b 100644 --- a/src/mesh/mesh2_api.c +++ b/src/mesh/mesh2_api.c | |||
@@ -495,9 +495,7 @@ destroy_tunnel (struct GNUNET_MESH_Tunnel *t, int call_cleaner) | |||
495 | } | 495 | } |
496 | h = t->mesh; | 496 | h = t->mesh; |
497 | 497 | ||
498 | /* free all peer's ID */ | ||
499 | GNUNET_CONTAINER_DLL_remove (h->tunnels_head, h->tunnels_tail, t); | 498 | GNUNET_CONTAINER_DLL_remove (h->tunnels_head, h->tunnels_tail, t); |
500 | GNUNET_PEER_change_rc (t->peer, -1); | ||
501 | 499 | ||
502 | /* signal tunnel destruction */ | 500 | /* signal tunnel destruction */ |
503 | if ( (NULL != h->cleaner) && (0 != t->peer) && (GNUNET_YES == call_cleaner) ) | 501 | if ( (NULL != h->cleaner) && (0 != t->peer) && (GNUNET_YES == call_cleaner) ) |