]> code.citadel.org Git - citadel.git/blobdiff - citadel/threads.c
* Save entire instant message conversations to the message base, instead of one saved...
[citadel.git] / citadel / threads.c
index 489fa416dc9c000fdb31ae54b27ed991f4ac931f..d67f7dbe99e384a915d8a04ce2daa69da2dff206 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: sysdep.c 5882 2007-12-13 19:46:05Z davew $
+ * $Id$
  *
  * Citadel "system dependent" stuff.
  * See COPYING for copyright information.
@@ -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