diff options
author | Bart Polot <bart@net.in.tum.de> | 2014-01-08 10:58:58 +0000 |
---|---|---|
committer | Bart Polot <bart@net.in.tum.de> | 2014-01-08 10:58:58 +0000 |
commit | 146c12c59dea1a1fe6bea3059d99f0d6ba8fe14d (patch) | |
tree | 7084b3563a75f840a46d2096db9d4b0e1a1baae4 /src/mesh/gnunet-service-mesh_tunnel.c | |
parent | 0db0f5b8f69e2137256904edf29222e71051e77c (diff) | |
download | gnunet-146c12c59dea1a1fe6bea3059d99f0d6ba8fe14d.tar.gz gnunet-146c12c59dea1a1fe6bea3059d99f0d6ba8fe14d.zip |
- mark task as completed
Diffstat (limited to 'src/mesh/gnunet-service-mesh_tunnel.c')
-rw-r--r-- | src/mesh/gnunet-service-mesh_tunnel.c | 5 |
1 files 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) | |||
1991 | * @param tc Task context. | 1991 | * @param tc Task context. |
1992 | */ | 1992 | */ |
1993 | static void | 1993 | static void |
1994 | tunnel_destroy (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | 1994 | delayed_destroy (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) |
1995 | { | 1995 | { |
1996 | struct MeshTunnel3 *t = cls; | 1996 | struct MeshTunnel3 *t = cls; |
1997 | 1997 | ||
1998 | t->destroy_task = GNUNET_SCHEDULER_NO_TASK; | ||
1998 | GMT_destroy (t); | 1999 | GMT_destroy (t); |
1999 | } | 2000 | } |
2000 | 2001 | ||
@@ -2028,7 +2029,7 @@ GMT_destroy_empty (struct MeshTunnel3 *t) | |||
2028 | } | 2029 | } |
2029 | t->cstate = MESH_TUNNEL3_NEW; | 2030 | t->cstate = MESH_TUNNEL3_NEW; |
2030 | t->destroy_task = GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_MINUTES, | 2031 | t->destroy_task = GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_MINUTES, |
2031 | &tunnel_destroy, t); | 2032 | &delayed_destroy, t); |
2032 | } | 2033 | } |
2033 | 2034 | ||
2034 | 2035 | ||