[IMP] Do not start cron master thread if max_cron_threads == 0
bzr revid: fme@openerp.com-20121002120111-nrmetmskns2ompgc
This commit is contained in:
parent
dbdcd8688c
commit
79b2a0f6c6
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue