From: Bart Polot Date: Tue, 19 Nov 2013 15:23:15 +0000 (+0000) Subject: - delete tunnel from peermap at shutdown X-Git-Tag: initial-import-from-subversion-38251~6000 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=9e68163eda93e219bad3bb433f1d90050ddac7b5;p=oweals%2Fgnunet.git - delete tunnel from peermap at shutdown --- 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); + }