remove spam for UDP

This commit is contained in:
Balder 2024-03-28 15:32:29 +01:00 committed by Thulinma
parent 40e9fb26d2
commit be8a348998

View file

@ -2212,7 +2212,9 @@ void Socket::UDPConnection::SendNow(const char *sdata, size_t len, sockaddr * dA
if (r > 0){
up += r;
}else{
FAIL_MSG("Could not send UDP data through %d: %s", sock, strerror(errno));
if (errno != ENETUNREACH){
FAIL_MSG("Could not send UDP data through %d: %s", sock, strerror(errno));
}
}
return;
}else{
@ -2221,7 +2223,9 @@ void Socket::UDPConnection::SendNow(const char *sdata, size_t len, sockaddr * dA
if (r > 0){
up += r;
}else{
FAIL_MSG("Could not send UDP data through %d: %s", sock, strerror(errno));
if (errno != ENETUNREACH){
FAIL_MSG("Could not send UDP data through %d: %s", sock, strerror(errno));
}
}
#if !defined(__CYGWIN__) && !defined(_WIN32)
}