From: havoc Date: Mon, 9 Jul 2007 01:28:30 +0000 (+0000) Subject: never let client timeout in singleplayer X-Git-Tag: xonotic-v0.1.0preview~2988 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=e74c6ff3492adf0ec62b6314322e9716dd3c30e1;p=xonotic%2Fdarkplaces.git never let client timeout in singleplayer git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7477 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/netconn.c b/netconn.c index 6352cf78..f8be676e 100755 --- a/netconn.c +++ b/netconn.c @@ -1733,7 +1733,7 @@ void NetConn_ClientFrame(void) while (cl_sockets[i] && (length = NetConn_Read(cl_sockets[i], readbuffer, sizeof(readbuffer), &peeraddress)) > 0) NetConn_ClientParsePacket(cl_sockets[i], readbuffer, length, &peeraddress); NetConn_QueryQueueFrame(); - if (cls.netcon && realtime > cls.netcon->timeout) + if (cls.netcon && realtime > cls.netcon->timeout && !sv.active) { Con_Print("Connection timed out\n"); CL_Disconnect();