[quake3-commits] r1568 - trunk/code/qcommon
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Fri Jun 5 14:54:48 EDT 2009
Author: thilo
Date: 2009-06-05 14:54:47 -0400 (Fri, 05 Jun 2009)
New Revision: 1568
Modified:
trunk/code/qcommon/net_ip.c
Log:
Fix highest file descriptor for select(), thanks to Ben Millwood for reporting
Modified: trunk/code/qcommon/net_ip.c
===================================================================
--- trunk/code/qcommon/net_ip.c 2009-06-01 05:29:28 UTC (rev 1567)
+++ trunk/code/qcommon/net_ip.c 2009-06-05 18:54:47 UTC (rev 1568)
@@ -1654,8 +1654,7 @@
{
FD_SET(ip_socket, &fdset);
- if(ip_socket > highestfd)
- highestfd = ip_socket;
+ highestfd = ip_socket;
}
if(ip6_socket != INVALID_SOCKET)
{
@@ -1667,7 +1666,7 @@
timeout.tv_sec = msec/1000;
timeout.tv_usec = (msec%1000)*1000;
- select(ip_socket+1, &fdset, NULL, NULL, &timeout);
+ select(highestfd + 1, &fdset, NULL, NULL, &timeout);
}
More information about the quake3-commits
mailing list