printing WSAEWOULDBLOCK on recvfrom is far too verbose

This commit is contained in:
myT 2022-12-27 19:18:17 +01:00
parent 15bea75d06
commit e64de08ef2

View file

@ -243,7 +243,11 @@ qbool Sys_GetPacket( netadr_t* net_from, msg_t* net_message )
int ret = recvfrom( ip_socket, (char*)net_message->data, net_message->maxsize, 0, (struct sockaddr *)&from, &fromlen );
if (ret == SOCKET_ERROR) {
int err = socketError;
#ifdef _WIN32
if (err == EAGAIN || err == ECONNRESET || err == WSAEWOULDBLOCK)
#else
if (err == EAGAIN || err == ECONNRESET)
#endif
return qfalse;
Com_Printf( "NET_GetPacket: %s\n", NET_ErrorString() );
return qfalse;