]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - netconn.c
(Round 1) Break up host_cmd.c
[xonotic/darkplaces.git] / netconn.c
index a2b259b69a417c317013847a4f55691b6cd447a4..eb61cfed12019e41bc601b9e729a0930332633f7 100755 (executable)
--- a/netconn.c
+++ b/netconn.c
@@ -1517,7 +1517,7 @@ static void NetConn_ConnectionEstablished(lhnetsocket_t *mysocket, lhnetaddress_
        if (LHNETADDRESS_GetAddressType(peeraddress) != LHNETADDRESSTYPE_LOOP && sv.active)
        {
                SV_LockThreadMutex();
-               Host_ShutdownServer ();
+               SV_Shutdown ();
                SV_UnlockThreadMutex();
        }
        // allocate a net connection to keep track of things
@@ -2482,7 +2482,7 @@ void NetConn_ClientFrame(void)
                Con_Print("Connection timed out\n");
                CL_Disconnect();
                SV_LockThreadMutex();
-               Host_ShutdownServer ();
+               SV_Shutdown ();
                SV_UnlockThreadMutex();
        }
 }