aboutsummaryrefslogtreecommitdiff
path: root/src/mesh
diff options
context:
space:
mode:
authorBart Polot <bart@net.in.tum.de>2012-02-07 15:59:51 +0000
committerBart Polot <bart@net.in.tum.de>2012-02-07 15:59:51 +0000
commit78bdb61823b4bc4939b1fc51d66e48638d9726b2 (patch)
tree6a1cf0918ed61fe77295b523654c605d31e7729b /src/mesh
parent1a58aa36a2006164a2db15734380a96a4ecb57af (diff)
downloadgnunet-78bdb61823b4bc4939b1fc51d66e48638d9726b2.tar.gz
gnunet-78bdb61823b4bc4939b1fc51d66e48638d9726b2.zip
- Fix cleanup on timeout
Diffstat (limited to 'src/mesh')
-rw-r--r--src/mesh/test_mesh_small.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/mesh/test_mesh_small.c b/src/mesh/test_mesh_small.c
index ab0f65755..1e0f2def2 100644
--- a/src/mesh/test_mesh_small.c
+++ b/src/mesh/test_mesh_small.c
@@ -233,6 +233,21 @@ disconnect_mesh_peers (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
233 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 233 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
234 "test: disconnecting mesh service of peers\n"); 234 "test: disconnecting mesh service of peers\n");
235 disconnect_task = GNUNET_SCHEDULER_NO_TASK; 235 disconnect_task = GNUNET_SCHEDULER_NO_TASK;
236 if (NULL != t)
237 {
238 GNUNET_MESH_tunnel_destroy(t);
239 t = NULL;
240 }
241 if (NULL != incoming_t)
242 {
243 GNUNET_MESH_tunnel_destroy(incoming_t);
244 incoming_t = NULL;
245 }
246 if (NULL != incoming_t2)
247 {
248 GNUNET_MESH_tunnel_destroy(incoming_t2);
249 incoming_t2 = NULL;
250 }
236 GNUNET_MESH_disconnect (h1); 251 GNUNET_MESH_disconnect (h1);
237 GNUNET_MESH_disconnect (h2); 252 GNUNET_MESH_disconnect (h2);
238 if (test == MULTICAST) 253 if (test == MULTICAST)