diff --git a/src/i_tcp.c b/src/i_tcp.c index 5b6a0bf08..98a03f841 100644 --- a/src/i_tcp.c +++ b/src/i_tcp.c @@ -635,7 +635,7 @@ static boolean SOCK_Get(void) 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)) @@ -649,7 +649,6 @@ static boolean SOCK_Get(void) break; } #endif - // find remote node number for (j = 1; j <= MAXNETNODES; j++) // include LAN {