Here it is, the new thread interface.
[citadel.git] / citadel / modules / expire / serv_expire.c
index 254ee5a10fbdd97d1e3ad17dd47b5874a114abab..4902af16b0a4d0aad4c3e74f6a2d99f930a95082 100644 (file)
@@ -844,9 +844,12 @@ void cmd_fsck(char *argbuf) {
 
 CTDL_MODULE_INIT(expire)
 {
-       CtdlRegisterSessionHook(purge_databases, EVT_TIMER);
-       CtdlRegisterProtoHook(cmd_fsck, "FSCK", "Check message ref counts");
-
+       if (!threading)
+       {
+               CtdlRegisterSessionHook(purge_databases, EVT_TIMER);
+               CtdlRegisterProtoHook(cmd_fsck, "FSCK", "Check message ref counts");
+       }
+       
        /* return our Subversion id for the Log */
        return "$Id$";
 }