this /should/ fix the windows server input problems. based on Timmmm's fix.

This commit is contained in:
Bill Currie 2003-01-16 16:11:28 +00:00
parent d63cde4103
commit 341b6a1d68

View file

@ -497,6 +497,7 @@ int
Sys_CheckInput (int idle, int net_socket)
{
fd_set fdset;
int res;
struct timeval _timeout;
struct timeval *timeout = 0;
@ -534,8 +535,8 @@ Sys_CheckInput (int idle, int net_socket)
if (!idle || !sys_dead_sleep->int_val)
timeout = &_timeout;
if (select (net_socket + 1, &fdset, NULL, NULL, timeout) == -1
&& errno != EINTR)
res = select (net_socket + 1, &fdset, NULL, NULL, timeout);
if (res == 0 || res == -1)
return 0;
stdin_ready = FD_ISSET (0, &fdset);
return 1;