Here it is, the new thread interface.
[citadel.git] / citadel / modules / rssclient / serv_rssclient.c
index 868516907a7bbefa6dab1a9c3d1f86b4bb225fdf..c9461a673934ed8d45ad0231aa3abd9b3e36ee1d 100644 (file)
@@ -622,11 +622,15 @@ void rssclient_scan(void) {
 
 CTDL_MODULE_INIT(rssclient)
 {
+       if (!threading)
+       {
 #ifdef HAVE_EXPAT
-       CtdlRegisterSessionHook(rssclient_scan, EVT_TIMER);
+               CtdlRegisterSessionHook(rssclient_scan, EVT_TIMER);
 #else
-        lprintf(CTDL_INFO, "This server is missing the Expat XML parser.  RSS client will be disabled.\n");
+               lprintf(CTDL_INFO, "This server is missing the Expat XML parser.  RSS client will be disabled.\n");
 #endif
+       }
+       
        /* return our Subversion id for the Log */
         return "$Id: serv_rssclient.c 5652 2007-10-29 20:14:48Z ajc $";
 }