From 604111986824e5f07f8cdb2b473ef2ae5681e24e Mon Sep 17 00:00:00 2001 From: havoc Date: Sat, 4 Mar 2006 15:04:28 +0000 Subject: [PATCH] add SV_VM block around SV_DropClient call in NetConn_ServerFrame to fix a crash when players time out git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6068 d7cf8633-e32d-0410-b094-e92efae38249 --- netconn.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/netconn.c b/netconn.c index 63ee46cf..c27b889c 100755 --- a/netconn.c +++ b/netconn.c @@ -2220,7 +2220,9 @@ void NetConn_ServerFrame(void) if (host_client->netconnection && realtime > host_client->netconnection->timeout && LHNETADDRESS_GetAddressType(&host_client->netconnection->peeraddress) != LHNETADDRESSTYPE_LOOP) { Con_Printf("Client \"%s\" connection timed out\n", host_client->name); + SV_VM_Begin(); SV_DropClient(false); + SV_VM_End(); } } } -- 2.39.2