]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - host.c
Added appropriate prototypes to taskqueue.h, added call to TaskQueue_Shutdown in...
[xonotic/darkplaces.git] / host.c
diff --git a/host.c b/host.c
index 61e84bc2e196a0b81c280416ef2950dc0635a320..1d0ad3b19b93cd00889a20b860ef8994f3fdf775 100644 (file)
--- a/host.c
+++ b/host.c
@@ -29,6 +29,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 #include "csprogs.h"
 #include "sv_demo.h"
 #include "snd_main.h"
+#include "taskqueue.h"
 #include "thread.h"
 #include "utf8lib.h"
 
@@ -1272,6 +1273,7 @@ static void Host_Init (void)
        Host_ServerOptions();
 
        Thread_Init();
+       TaskQueue_Init();
 
        if (cls.state == ca_dedicated)
                Cmd_AddCommand ("disconnect", CL_Disconnect_f, "disconnect from server (or disconnect all clients if running a server)");
@@ -1443,6 +1445,7 @@ void Host_Shutdown(void)
        }
 
        SV_StopThread();
+       TaskQueue_Shutdown();
        Thread_Shutdown();
        Cmd_Shutdown();
        Key_Shutdown();