diff options
Diffstat (limited to 'source/cl_main.c')
-rw-r--r-- | source/cl_main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/cl_main.c b/source/cl_main.c index ab10ac7..c427fb7 100644 --- a/source/cl_main.c +++ b/source/cl_main.c @@ -2657,9 +2657,9 @@ static void CL_CheckTimeout( void ) { Com_Error( ERR_DISCONNECT, "Server connection was reset." ); } } - + delta = cl_timeout->value * 1000; - if( com_localTime - cls.netchan->last_received > delta ) { + if( delta && com_localTime - cls.netchan->last_received > delta ) { // timeoutcount saves debugger if ( ++cl.timeoutcount > 5 ) { Com_Error( ERR_DISCONNECT, "Server connection timed out." ); |