]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
add SV_VM block around SV_DropClient call in NetConn_ServerFrame to fix a crash when...
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 4 Mar 2006 15:04:28 +0000 (15:04 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 4 Mar 2006 15:04:28 +0000 (15:04 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6068 d7cf8633-e32d-0410-b094-e92efae38249

netconn.c

index 63ee46cf098686ec0609be637410f28c60de8a88..c27b889c9422a9a8d46f3da9ca568229417e1a18 100755 (executable)
--- 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();
                }
        }
 }