diff options
author | Bart Polot <bart@net.in.tum.de> | 2014-03-17 11:02:37 +0000 |
---|---|---|
committer | Bart Polot <bart@net.in.tum.de> | 2014-03-17 11:02:37 +0000 |
commit | 77249130e284e2c39ad478ed06c102d7d538b361 (patch) | |
tree | eefc2312367f3d62a8b7c0477b81347174e61eac /src | |
parent | 28be5532ee5872b181157272aaa3c8bf7f4b836c (diff) | |
download | gnunet-77249130e284e2c39ad478ed06c102d7d538b361.tar.gz gnunet-77249130e284e2c39ad478ed06c102d7d538b361.zip |
- don't shutdown twice
Diffstat (limited to 'src')
-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); |