summaryrefslogtreecommitdiff
path: root/addons/web_editor/static/src/js/editor/transcoder.js
diff options
context:
space:
mode:
authorAdrian Torres <adt@odoo.com>2017-11-27 11:12:27 +0100
committerDenis Ledoux <dle@odoo.com>2018-08-01 10:43:44 +0200
commit60353cf46369a43217f4f2b63d7e64bcb11c8f62 (patch)
treef421f1539ae5f0e98c32053a961e3d8aaf870fae /addons/web_editor/static/src/js/editor/transcoder.js
parent65ad60665e54a7e61d3d064df63457d0097587bd (diff)
[FIX] server: do not restart if phoenix is True (#21209)
Before this commit, saving a file being watched by watchdog (--dev=reload) with vim (and possibly other text editors) would crash the server via a KeyboardInterrupt error. This happens because vim, emacs cause multiple filesystem events to happen when saving a single file, the FSWatcher registers these events as multiple SIGHUPs which in turn calls restart() multiple times in a very small amount of time which makes the KeyboardInterrupts completely shut down the server This is fixed by only calling restart() if odoo.phoenix is False, since catching a SIGHUP sets it to true. Fixes #21178 Special thanks to @odony for the help :)
Diffstat (limited to 'addons/web_editor/static/src/js/editor/transcoder.js')
0 files changed, 0 insertions, 0 deletions