X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Fthreads.c;h=f1be5a39ac1737806ec93c5a68212dd1b7f8347d;hb=3de7cf767571d26d4f4852577b080f9264d34f91;hp=1afad1cfcac72aa64d8a699c58cf070b821d1b42;hpb=933901571bf3f9e41d77218ed044b9ea7a7198c2;p=citadel.git diff --git a/citadel/threads.c b/citadel/threads.c index 1afad1cfc..f1be5a39a 100644 --- a/citadel/threads.c +++ b/citadel/threads.c @@ -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);