etwist/server.py
branchstable
changeset 5325 f1c660e1169e
parent 5279 42a37a50f2ff
child 5328 c51e8f62652a
child 5421 8167de96c523
--- a/etwist/server.py	Mon Apr 19 13:35:57 2010 +0200
+++ b/etwist/server.py	Mon Apr 19 13:37:32 2010 +0200
@@ -124,10 +124,8 @@
         CW_EVENT_MANAGER.bind('after-registry-reload', self.set_url_rewriter)
 
     def start_service(self):
-        config = self.config
-        interval = min(config['cleanup-session-time'] or 120,
-                       config['cleanup-anonymous-session-time'] or 720) / 2.
-        start_task(interval, self.appli.session_handler.clean_sessions)
+        start_task(self.appli.session_handler.clean_sessions_interval,
+                   self.appli.session_handler.clean_sessions)
 
     def set_url_rewriter(self):
         self.url_rewriter = self.appli.vreg['components'].select_or_none('urlrewriter')