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