From: Bart Polot Date: Mon, 17 Mar 2014 11:02:37 +0000 (+0000) Subject: - don't shutdown twice X-Git-Tag: initial-import-from-subversion-38251~4524 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=77249130e284e2c39ad478ed06c102d7d538b361;p=oweals%2Fgnunet.git - don't shutdown twice --- diff --git a/src/mesh/gnunet-mesh-profiler.c b/src/mesh/gnunet-mesh-profiler.c index 480ecea39..88d3ab9e5 100644 --- 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);