From: havoc Date: Sat, 4 Mar 2006 15:04:28 +0000 (+0000) Subject: add SV_VM block around SV_DropClient call in NetConn_ServerFrame to fix a crash when... X-Git-Tag: xonotic-v0.1.0preview~4246 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=604111986824e5f07f8cdb2b473ef2ae5681e24e;p=xonotic%2Fdarkplaces.git 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 --- 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(); } } }