From 9e68163eda93e219bad3bb433f1d90050ddac7b5 Mon Sep 17 00:00:00 2001 From: Bart Polot Date: Tue, 19 Nov 2013 15:23:15 +0000 Subject: [PATCH] - delete tunnel from peermap at shutdown --- src/mesh/gnunet-service-mesh_tunnel.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/mesh/gnunet-service-mesh_tunnel.c b/src/mesh/gnunet-service-mesh_tunnel.c index 7198a2474..a395141f7 100644 --- a/src/mesh/gnunet-service-mesh_tunnel.c +++ b/src/mesh/gnunet-service-mesh_tunnel.c @@ -1650,8 +1650,9 @@ GMT_destroy (struct MeshTunnel3 *t) LOG (GNUNET_ERROR_TYPE_DEBUG, "destroying tunnel %s\n", GMP_2s (t->peer)); -// if (GNUNET_YES != GNUNET_CONTAINER_multihashmap_remove (tunnels, &t->id, t)) -// GNUNET_break (0); + GNUNET_break (GNUNET_YES == + GNUNET_CONTAINER_multipeermap_remove (tunnels, + GMP_get_id (t->peer), t)); for (iter_c = t->connection_head; NULL != iter_c; iter_c = next_c) { @@ -1672,6 +1673,7 @@ GMT_destroy (struct MeshTunnel3 *t) GNUNET_SCHEDULER_cancel (t->rekey_task); GNUNET_free (t); + } -- 2.25.1