From 419f0c27cae02b519fd08275d893989cb99ae036 Mon Sep 17 00:00:00 2001 From: Christian Herdtweck Date: Mon, 12 Jan 2015 15:41:04 +0100 Subject: [PATCH] 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 --- src/icmp/icmppinger.cpp | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) 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 ) -- 1.7.1