mirror of
https://github.com/UberGames/lilium-voyager.git
synced 2024-12-13 13:40:56 +00:00
Fix highest file descriptor for select(), thanks to Ben Millwood for reporting
This commit is contained in:
parent
02195ea8bd
commit
3dddabcc52
1 changed files with 2 additions and 3 deletions
|
@ -1654,8 +1654,7 @@ void NET_Sleep( int msec ) {
|
|||
{
|
||||
FD_SET(ip_socket, &fdset);
|
||||
|
||||
if(ip_socket > highestfd)
|
||||
highestfd = ip_socket;
|
||||
highestfd = ip_socket;
|
||||
}
|
||||
if(ip6_socket != INVALID_SOCKET)
|
||||
{
|
||||
|
@ -1667,7 +1666,7 @@ void NET_Sleep( int msec ) {
|
|||
|
||||
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);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue