summaryrefslogtreecommitdiff
path: root/addons/web/static/src/less/webclient.less
diff options
context:
space:
mode:
authorGéry Debongnie <ged@odoo.com>2018-04-13 13:01:09 +0200
committerGéry Debongnie <ged@odoo.com>2018-04-13 17:16:11 +0200
commitdc35d740a6e61487e10a818ee731079faa72af75 (patch)
tree11363710d82f7c35b474b65ea753fe3fea83edea /addons/web/static/src/less/webclient.less
parentb096915dc8e8c2b4547b19db177c3b614ca98620 (diff)
[FIX] mail: prevent race condition in discuss
The discuss application starting process is strongly asynchronous. However, it relies implicitely on the fact that the widget is not destroyed in its starting process. For example, if the widget is detroyed before the updateChannel method is called, then any call to the chat manager service will return undefined and the widget will crash. When discuss is destroyed exactly between the start and the end of the creation of its search view (which is asynchronous), then it is possible to have a crash, because the search view will be destroyed when the do_search method is called. Note that we had to fix discuss mobile as well: The _setChannel method is supposed to return a deferred, but the mobile override did not return it. As a result, a test in the mobile suite failed because this.alive takes a deferred in argument.
Diffstat (limited to 'addons/web/static/src/less/webclient.less')
0 files changed, 0 insertions, 0 deletions