do not merge UDP failed pings when falling back to TCP on Win & Mac to get the ping count right (as requested)

This commit is contained in:
Anton Keks 2022-01-22 15:14:39 +02:00
parent 837c9a0640
commit fa810de8f0

View File

@ -35,7 +35,6 @@ public class CombinedUnprivilegedPinger implements Pinger {
return udpResult.merge(udpPinger.ping(subject, count - udpCountInitialCount));
// fallback to TCP - it may detect some hosts UDP cannot
PingResult tcpResult = tcpPinger.ping(subject, count);
return tcpResult.merge(udpResult);
return tcpPinger.ping(subject, count);
}
}