From: Guilherme Maciel Ferreira Date: Mon, 5 Mar 2012 00:11:27 +0000 (-0300) Subject: Repositioning of the ping_done_handler() method according to the order in the header. X-Git-Tag: v1.5~1^2~18 X-Git-Url: http://developer.intra2net.com/git/?a=commitdiff_plain;h=8ae148173592052002b544115128e97bbc203344;p=pingcheck Repositioning of the ping_done_handler() method according to the order in the header. --- 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 );