From bf8764923af1ad07dcf066b796eace70dca9ae7f Mon Sep 17 00:00:00 2001 From: havoc Date: Mon, 17 Oct 2011 11:16:53 +0000 Subject: [PATCH] init/shutdown thread system in dedicated server as well git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11434 d7cf8633-e32d-0410-b094-e92efae38249 --- host.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/host.c b/host.c index 9965f5c6..f2e66e3a 100644 --- 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(); -- 2.39.2