From: Christian Herdtweck Date: Mon, 12 Jan 2015 14:41:04 +0000 (+0100) Subject: continue waiting for data if receive handler received an error code X-Git-Url: http://developer.intra2net.com/git/?a=commitdiff_plain;h=419f0c27cae02b519fd08275d893989cb99ae036;p=pingcheck continue waiting for data if receive handler received an error code 2 reasons: * in other error cases do the same * there is a timer running in the background which will send the next ping after some time --- diff --git a/src/icmp/icmppinger.cpp b/src/icmp/icmppinger.cpp index bcf73a5..a9eec4b 100644 --- a/src/icmp/icmppinger.cpp +++ b/src/icmp/icmppinger.cpp @@ -266,7 +266,9 @@ void IcmpPinger::handle_receive_icmp_packet( const boost::system::error_code &er { GlobalLogger.warning() << DestinationEndpoint.address().to_string() - << ": Received error " << error << " in ICMP packet handler; end handler."; + << ": Received error " << error + << " in ICMP packet handler; end handler and schedule another."; + start_receive(); return; } if ( ReplyReceived )