summaryrefslogtreecommitdiff
path: root/src/qcommon/net_ip.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/qcommon/net_ip.c')
-rw-r--r--src/qcommon/net_ip.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/qcommon/net_ip.c b/src/qcommon/net_ip.c
index b6a158ce..2a93b0c4 100644
--- a/src/qcommon/net_ip.c
+++ b/src/qcommon/net_ip.c
@@ -1672,6 +1672,9 @@ void NET_Sleep(int msec)
fd_set fdr;
int highestfd = -1, retval;
+ if(msec < 0)
+ msec = 0;
+
FD_ZERO(&fdr);
if(ip_socket != INVALID_SOCKET)