From: Bart Polot Date: Wed, 8 Jan 2014 10:58:58 +0000 (+0000) Subject: - mark task as completed X-Git-Tag: initial-import-from-subversion-38251~5110 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=146c12c59dea1a1fe6bea3059d99f0d6ba8fe14d;p=oweals%2Fgnunet.git - mark task as completed --- 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); }