From e74c6ff3492adf0ec62b6314322e9716dd3c30e1 Mon Sep 17 00:00:00 2001 From: havoc Date: Mon, 9 Jul 2007 01:28:30 +0000 Subject: [PATCH] never let client timeout in singleplayer git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7477 d7cf8633-e32d-0410-b094-e92efae38249 --- netconn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); -- 2.39.2