[IMP] Do not start cron master thread if max_cron_threads == 0

bzr revid: fme@openerp.com-20121002120111-nrmetmskns2ompgc
This commit is contained in:
Fabien Meghazi 2012-10-02 14:01:11 +02:00
parent dbdcd8688c
commit 79b2a0f6c6
1 changed files with 2 additions and 1 deletions

View File

@ -84,7 +84,8 @@ def start_services():
netrpc_server.init_servers()
# Start the main cron thread.
openerp.cron.start_master_thread()
if openerp.conf.max_cron_threads:
openerp.cron.start_master_thread()
# Start the top-level servers threads (normally HTTP, HTTPS, and NETRPC).
openerp.netsvc.Server.startAll()