]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
init/shutdown thread system in dedicated server as well
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 17 Oct 2011 11:16:53 +0000 (11:16 +0000)
committerRudolf Polzer <divverent@xonotic.org>
Tue, 18 Oct 2011 13:05:17 +0000 (15:05 +0200)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11434 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=bf8764923af1ad07dcf066b796eace70dca9ae7f

host.c

diff --git a/host.c b/host.c
index 9965f5c617b48654c2bcd0a559043f784eeaf50a..f2e66e3a55f0f140eb233477485ef61e7459de45 100644 (file)
--- a/host.c
+++ b/host.c
@@ -1163,6 +1163,8 @@ static void Host_Init (void)
        Host_InitLocal();
        Host_ServerOptions();
 
+       Thread_Init();
+
        if (cls.state == ca_dedicated)
                Cmd_AddCommand ("disconnect", CL_Disconnect_f, "disconnect from server (or disconnect all clients if running a server)");
        else
@@ -1172,7 +1174,6 @@ static void Host_Init (void)
                R_Modules_Init();
                Palette_Init();
                MR_Init_Commands();
-               Thread_Init();
                VID_Shared_Init();
                VID_Init();
                Render_Init();
@@ -1314,9 +1315,9 @@ void Host_Shutdown(void)
        {
                R_Modules_Shutdown();
                VID_Shutdown();
-               Thread_Shutdown();
        }
 
+       Thread_Shutdown();
        Cmd_Shutdown();
        Key_Shutdown();
        CL_Shutdown();