summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic/basic_model.js
diff options
context:
space:
mode:
authorAdrian Torres <adt@odoo.com>2017-11-27 11:12:27 +0100
committerGitHub <noreply@github.com>2017-11-27 11:12:27 +0100
commitac5ba4a2b0ab75a42d86a5aa04a0e837de64ffff (patch)
tree8cbdfb07e87a7f0d64b4eac1e5ca6a51c0533de1 /addons/web/static/src/js/views/basic/basic_model.js
parentb46830858f44b83b185df4f83e20aad69b48d330 (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/static/src/js/views/basic/basic_model.js')
0 files changed, 0 insertions, 0 deletions