From 2dec81c06e4aacd6184c476cc33766a5b7aa7f36 Mon Sep 17 00:00:00 2001
From: Fabien Pinckaers <fp@tinyerp.com>
Date: Fri, 6 Feb 2009 13:44:58 +0100
Subject: [PATCH] bugfix

bzr revid: fp@tinyerp.com-20090206124458-z1x2tmqbyy8fz4x8
---
 bin/addons/base/ir/ir_cron.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/bin/addons/base/ir/ir_cron.py b/bin/addons/base/ir/ir_cron.py
index 75d6b61f131a..2ea8746b883b 100644
--- a/bin/addons/base/ir/ir_cron.py
+++ b/bin/addons/base/ir/ir_cron.py
@@ -75,6 +75,8 @@ class ir_cron(osv.osv, netsvc.Agent):
             f(cr, uid, *args)
 
     def _poolJobs(self, db_name, check=False):
+        if self.pool._init:
+            self.setAlarm(self._poolJobs, int(time.time())+10*60, [db_name])
         now = DateTime.now()
         #FIXME: multidb. Solution: a l'instanciation d'une nouvelle connection bd (ds pooler) fo que j'instancie
         # un nouveau pooljob avec comme parametre la bd
-- 
GitLab