summaryrefslogtreecommitdiff
path: root/src/qcommon/net_ip.c
diff options
context:
space:
mode:
authorThilo Schulz <arny@ats.s.bawue.de>2011-07-15 16:51:54 +0000
committerTim Angus <tim@ngus.net>2013-01-10 22:29:59 +0000
commit46aaeb56660ef727c30841718331fef45e8377be (patch)
tree02134c1b7aa6bca7ed85983b89246b95a8d13e45 /src/qcommon/net_ip.c
parentf5712eeab32ebbd4b283d1031cd37eaa12573596 (diff)
Move rate limiting / queued packet sending logic from Com_Frame() to sv_main.c
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)