From 146c12c59dea1a1fe6bea3059d99f0d6ba8fe14d Mon Sep 17 00:00:00 2001 From: Bart Polot Date: Wed, 8 Jan 2014 10:58:58 +0000 Subject: [PATCH] - mark task as completed --- src/mesh/gnunet-service-mesh_tunnel.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/mesh/gnunet-service-mesh_tunnel.c b/src/mesh/gnunet-service-mesh_tunnel.c index 672905b5e..b8350ca04 100644 --- a/src/mesh/gnunet-service-mesh_tunnel.c +++ b/src/mesh/gnunet-service-mesh_tunnel.c @@ -1991,10 +1991,11 @@ GMT_get_channel (struct MeshTunnel3 *t, MESH_ChannelNumber chid) * @param tc Task context. */ static void -tunnel_destroy (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) +delayed_destroy (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) { struct MeshTunnel3 *t = cls; + t->destroy_task = GNUNET_SCHEDULER_NO_TASK; GMT_destroy (t); } @@ -2028,7 +2029,7 @@ GMT_destroy_empty (struct MeshTunnel3 *t) } t->cstate = MESH_TUNNEL3_NEW; t->destroy_task = GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_MINUTES, - &tunnel_destroy, t); + &delayed_destroy, t); } -- 2.25.1