diff options
author | Bart Polot <bart@net.in.tum.de> | 2014-03-17 11:02:45 +0000 |
---|---|---|
committer | Bart Polot <bart@net.in.tum.de> | 2014-03-17 11:02:45 +0000 |
commit | 284af945ccbdc0ca5442227b1c895c25dde6671b (patch) | |
tree | 1488553365bff1d867398099370e62ca3ffcda89 /src | |
parent | 6ba4f04d739c78bd5ff0ef7195fb0c897b716632 (diff) | |
download | gnunet-284af945ccbdc0ca5442227b1c895c25dde6671b.tar.gz gnunet-284af945ccbdc0ca5442227b1c895c25dde6671b.zip |
- disconnect all mesh handles
Diffstat (limited to 'src')
-rw-r--r-- | src/mesh/gnunet-mesh-profiler.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mesh/gnunet-mesh-profiler.c b/src/mesh/gnunet-mesh-profiler.c index 4ae884846..08de6056d 100644 --- a/src/mesh/gnunet-mesh-profiler.c +++ b/src/mesh/gnunet-mesh-profiler.c | |||
@@ -415,6 +415,14 @@ adjust_running_peers (unsigned int target) | |||
415 | peers[r].ping_task = GNUNET_SCHEDULER_NO_TASK; | 415 | peers[r].ping_task = GNUNET_SCHEDULER_NO_TASK; |
416 | 416 | ||
417 | peers[r].up = run; | 417 | peers[r].up = run; |
418 | |||
419 | GNUNET_MESH_channel_destroy (peers[r].ch); | ||
420 | peers[r].ch = NULL; | ||
421 | GNUNET_MESH_channel_destroy (peers[r].dest->incoming_ch); | ||
422 | peers[r].dest->incoming_ch = NULL; | ||
423 | GNUNET_MESH_disconnect (peers[r].mesh); | ||
424 | peers[r].mesh = NULL; | ||
425 | |||
418 | op = GNUNET_TESTBED_peer_manage_service (&peers[r], testbed_handles[r], | 426 | op = GNUNET_TESTBED_peer_manage_service (&peers[r], testbed_handles[r], |
419 | "mesh", NULL, NULL, run); | 427 | "mesh", NULL, NULL, run); |
420 | GNUNET_break (NULL != op); | 428 | GNUNET_break (NULL != op); |