summaryrefslogtreecommitdiff
path: root/addons/project/data
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:19:33 +0200
commit827adcd8fc92139b2f25a1dfd714374cb2cc3cb8 (patch)
treee2bd4c349c82aba728666b223fa43bad0d669503 /addons/project/data
parent7a282c99655d4f154ac1808fcb8a70339dc70930 (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/project/data')
0 files changed, 0 insertions, 0 deletions