diff options
-rw-r--r-- | src/mesh/gnunet-mesh-profiler.c | 4 |
1 files changed, 4 insertions, 0 deletions
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) | |||
248 | for (i = 0; i < TOTAL_PEERS; i++) | 248 | for (i = 0; i < TOTAL_PEERS; i++) |
249 | { | 249 | { |
250 | GNUNET_TESTBED_operation_done (peers[i].op); | 250 | GNUNET_TESTBED_operation_done (peers[i].op); |
251 | |||
252 | if (peers[i].up != GNUNET_YES) | ||
253 | continue; | ||
254 | |||
251 | GNUNET_MESH_channel_destroy (peers[i].ch); | 255 | GNUNET_MESH_channel_destroy (peers[i].ch); |
252 | if (NULL != peers[i].incoming_ch) | 256 | if (NULL != peers[i].incoming_ch) |
253 | GNUNET_MESH_channel_destroy (peers[i].incoming_ch); | 257 | GNUNET_MESH_channel_destroy (peers[i].incoming_ch); |