remove spam for UDP
This commit is contained in:
parent
40e9fb26d2
commit
be8a348998
1 changed files with 6 additions and 2 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue