Repositioning of the ping_done_handler() method according to the order in the header.
authorGuilherme Maciel Ferreira <guilherme.maciel.ferreira@gmail.com>
Mon, 5 Mar 2012 00:11:27 +0000 (21:11 -0300)
committerGuilherme Maciel Ferreira <guilherme.maciel.ferreira@gmail.com>
Mon, 5 Mar 2012 00:13:10 +0000 (21:13 -0300)
src/host/pingscheduler.cpp

index bd0f9a3..3b5dcaf 100644 (file)
@@ -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 );