diff --git a/src/i_tcp.c b/src/i_tcp.c index e99672d14..483062793 100644 --- a/src/i_tcp.c +++ b/src/i_tcp.c @@ -596,7 +596,7 @@ static boolean SOCK_Get(void) fromlen = (socklen_t)sizeof(fromaddress); c = recvfrom(mysockets[n], (char *)&doomcom->data, MAXPACKETLENGTH, 0, (void *)&fromaddress, &fromlen); - if (c != ERRSOCKET) + if (c > 0) { #ifdef USE_STUN if (STUN_got_response(doomcom->data, c))