* Save entire instant message conversations to the message base, instead of one saved...
[citadel.git] / citadel / threads.c
index 3b4f0c13036fcbb8bbab38caac80e0711dcc51a2..d67f7dbe99e384a915d8a04ce2daa69da2dff206 100644 (file)
@@ -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