void PingScheduler::get_next_ping_protocol()
{
+ if (Ping)
+ {
+ Ping->stop_pinging();
+ Ping.reset();
+ }
+
GlobalLogger.debug() << LogPrefix
<< "------------------------------------------------------------------";
++ProtocolIter;
// --> ProtocolIter still points to currently used protocol which is
// required in dns_resolve_callback
- if (Ping)
- Ping->stop_pinging();
-
Ping = PingerFactory::createPinger(ping_protocol, IoService,
NetworkInterfaceName, PingReplyTimeout);