[FIX] server.py: don't start multiple FSWatcher in multiworker mode

Before this commit every worker would start his own FSWatcher.
This commit is contained in:
Denis Vermylen
2019-03-14 14:37:57 +00:00
parent a1fa9faa31
commit 83b2d2e1b5
+1 -1
View File
@@ -941,7 +941,7 @@ def start(preload=None, stop=False):
server = ThreadedServer(odoo.service.wsgi_server.application)
watcher = None
if 'reload' in config['dev_mode']:
if 'reload' in config['dev_mode'] and not odoo.evented:
if watchdog:
watcher = FSWatcher()
watcher.start()