aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBart Polot <bart@net.in.tum.de>2014-03-17 11:02:33 +0000
committerBart Polot <bart@net.in.tum.de>2014-03-17 11:02:33 +0000
commitc1b323d564e157e805d20abb842bb14bf38e1f99 (patch)
treebbe2404f098afa0f8f3f34c3e368c2a614fa0034 /src
parentd203c726efb4b50aa0b33e97458bf5189bd838a4 (diff)
downloadgnunet-c1b323d564e157e805d20abb842bb14bf38e1f99.tar.gz
gnunet-c1b323d564e157e805d20abb842bb14bf38e1f99.zip
- cancel pings on peer shutdown
Diffstat (limited to 'src')
-rw-r--r--src/mesh/gnunet-mesh-profiler.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesh/gnunet-mesh-profiler.c b/src/mesh/gnunet-mesh-profiler.c
index 040d80e24..245df27f9 100644
--- a/src/mesh/gnunet-mesh-profiler.c
+++ b/src/mesh/gnunet-mesh-profiler.c
@@ -398,6 +398,8 @@ adjust_running_peers (unsigned int target)
398 } while (peers[r].up == run); 398 } while (peers[r].up == run);
399 GNUNET_log (GNUNET_ERROR_TYPE_INFO, "St%s peer %u: %s\n", 399 GNUNET_log (GNUNET_ERROR_TYPE_INFO, "St%s peer %u: %s\n",
400 run ? "arting" : "opping", r, GNUNET_i2s (&peers[r].id)); 400 run ? "arting" : "opping", r, GNUNET_i2s (&peers[r].id));
401 GNUNET_SCHEDULER_cancel (peers[r].ping_task);
402 peers[r].ping_task = GNUNET_SCHEDULER_NO_TASK;
401 peers[r].up = GNUNET_NO; 403 peers[r].up = GNUNET_NO;
402 op = GNUNET_TESTBED_peer_manage_service (&peers[r], testbed_handles[r], 404 op = GNUNET_TESTBED_peer_manage_service (&peers[r], testbed_handles[r],
403 "mesh", NULL, NULL, run); 405 "mesh", NULL, NULL, run);