X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Fthreads.c;h=d67f7dbe99e384a915d8a04ce2daa69da2dff206;hb=7fd4181cd61e0bdbc74591e61cfeb0b7f62390b5;hp=3b4f0c13036fcbb8bbab38caac80e0711dcc51a2;hpb=cbaac9c21db2ab8151e611bdf9e51982a65115a7;p=citadel.git diff --git a/citadel/threads.c b/citadel/threads.c index 3b4f0c130..d67f7dbe9 100644 --- a/citadel/threads.c +++ b/citadel/threads.c @@ -328,6 +328,9 @@ void ctdl_thread_internal_change_state (CtdlThreadNode *this_thread, enum CtdlTh */ void CtdlThreadStopAll(void) { + /* First run any registered shutdown hooks. This probably doesn't belong here. */ + PerformSessionHooks(EVT_SHUTDOWN); + //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