libevent Migration:
[citadel.git] / citadel / threads.c
index 1afad1cfcac72aa64d8a699c58cf070b821d1b42..f1be5a39ac1737806ec93c5a68212dd1b7f8347d 100644 (file)
@@ -58,6 +58,7 @@
 #include "citserver.h"
 #include "sysdep_decls.h"
 #include "context.h"
+#include "event_client.h"
 
 /*
  * define this to use the new worker_thread method of handling connections
@@ -358,6 +359,8 @@ void CtdlThreadStopAll(void)
        //FIXME: The signalling of the condition should not be in the critical_section
        // We need to build a list of threads we are going to signal and then signal them afterwards
        
+       ShutDownEventQueue();
+
        CtdlThreadNode *this_thread;
        
        begin_critical_section(S_THREAD_LIST);