Here it is, the new thread interface.
[citadel.git] / citadel / modules / pop3client / serv_pop3client.c
index 5046a985d4ff0aa4790b335c466bb6be2a52883d..b3227707b9495b9566ee720ae58f0c4471df68fb 100644 (file)
@@ -287,8 +287,11 @@ void pop3client_scan(void) {
 
 CTDL_MODULE_INIT(pop3client)
 {
-       CtdlRegisterSessionHook(pop3client_scan, EVT_TIMER);
-
+       if (!threading)
+       {
+               CtdlRegisterSessionHook(pop3client_scan, EVT_TIMER);
+       }
+       
        /* return our Subversion id for the Log */
         return "$Id$";
 }