From 284af945ccbdc0ca5442227b1c895c25dde6671b Mon Sep 17 00:00:00 2001 From: Bart Polot Date: Mon, 17 Mar 2014 11:02:45 +0000 Subject: [PATCH] - disconnect all mesh handles --- src/mesh/gnunet-mesh-profiler.c | 8 ++++++++ 1 file changed, 8 insertions(+) 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) peers[r].ping_task = GNUNET_SCHEDULER_NO_TASK; peers[r].up = run; + + GNUNET_MESH_channel_destroy (peers[r].ch); + peers[r].ch = NULL; + GNUNET_MESH_channel_destroy (peers[r].dest->incoming_ch); + peers[r].dest->incoming_ch = NULL; + GNUNET_MESH_disconnect (peers[r].mesh); + peers[r].mesh = NULL; + op = GNUNET_TESTBED_peer_manage_service (&peers[r], testbed_handles[r], "mesh", NULL, NULL, run); GNUNET_break (NULL != op); -- 2.25.1