cubicweb/server/repository.py
changeset 11995 7d56ae4aa0ee
parent 11988 ffde65347797
child 12012 f7ff5217a02f
--- a/cubicweb/server/repository.py	Mon Feb 27 17:13:45 2017 +0100
+++ b/cubicweb/server/repository.py	Thu Feb 23 08:37:39 2017 +0100
@@ -413,8 +413,7 @@
                 self.cleanup_session_time = self.config['cleanup-session-time'] or 60 * 60 * 24
                 assert self.cleanup_session_time > 0
                 cleanup_session_interval = min(60 * 60, self.cleanup_session_time / 3)
-                self._tasks_manager.add_looping_task(cleanup_session_interval,
-                                                     self.clean_sessions)
+                self.looping_task(cleanup_session_interval, self.clean_sessions)
 
     def start_looping_tasks(self):
         """Actual "Repository as a server" startup.