From 8ae148173592052002b544115128e97bbc203344 Mon Sep 17 00:00:00 2001 From: Guilherme Maciel Ferreira Date: Sun, 4 Mar 2012 21:11:27 -0300 Subject: [PATCH] Repositioning of the ping_done_handler() method according to the order in the header. --- src/host/pingscheduler.cpp | 16 ++++++++-------- 1 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/host/pingscheduler.cpp b/src/host/pingscheduler.cpp index bd0f9a3..3b5dcaf 100644 --- a/src/host/pingscheduler.cpp +++ b/src/host/pingscheduler.cpp @@ -189,6 +189,14 @@ void PingScheduler::ping() Ping->ping( boost::bind(&PingScheduler::ping_done_handler, this, _1) ); } +void PingScheduler::ping_done_handler( bool ping_success ) +{ + update_ping_statistics( ping_success ); + update_ping_elapsed_time(); + + schedule_next_ping(); +} + void PingScheduler::setup_next_ping() { BOOST_ASSERT( 1 <= Ping->get_resolved_ip_count() ); @@ -198,14 +206,6 @@ void PingScheduler::setup_next_ping() ping(); } -void PingScheduler::ping_done_handler( bool ping_success ) -{ - update_ping_statistics( ping_success ); - update_ping_elapsed_time(); - - schedule_next_ping(); -} - void PingScheduler::schedule_next_ping() { BOOST_ASSERT( 0 < PingIntervalInSec ); -- 1.7.1