Here it is, the new thread interface.
[citadel.git] / citadel / modules / funambol / serv_funambol.c
index 23b17b47099e3933be1d7831943270ec6003dbe2..e60c64a699c1c6056be891784b7c58bf459598b5 100644 (file)
@@ -249,9 +249,11 @@ int funambol_isAllowedByPrefs(long configMsgNum) {
 
 CTDL_MODULE_INIT(funambol)
 {
-       create_notify_queue();
-       CtdlRegisterSessionHook(do_notify_queue, EVT_TIMER);
-
+       if (!threading)
+       {
+               create_notify_queue();
+               CtdlRegisterSessionHook(do_notify_queue, EVT_TIMER);
+       }
        /* return our Subversion id for the Log */
         return "$Id$";
 }