commit 77249130e284e2c39ad478ed06c102d7d538b361
parent 28be5532ee5872b181157272aaa3c8bf7f4b836c
Author: Bart Polot <bart@net.in.tum.de>
Date: Mon, 17 Mar 2014 11:02:37 +0000
- don't shutdown twice
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/src/mesh/gnunet-mesh-profiler.c b/src/mesh/gnunet-mesh-profiler.c
@@ -248,6 +248,10 @@ disconnect_mesh_peers (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
for (i = 0; i < TOTAL_PEERS; i++)
{
GNUNET_TESTBED_operation_done (peers[i].op);
+
+ if (peers[i].up != GNUNET_YES)
+ continue;
+
GNUNET_MESH_channel_destroy (peers[i].ch);
if (NULL != peers[i].incoming_ch)
GNUNET_MESH_channel_destroy (peers[i].incoming_ch);