summaryrefslogtreecommitdiff
path: root/addons/web/static/lib/jquery.mjs.nestedSortable/jquery.mjs.nestedSortable.js
diff options
context:
space:
mode:
authorAaron Bohy <aab@odoo.com>2015-12-07 15:21:43 +0100
committerAaron Bohy <aab@odoo.com>2015-12-07 16:32:28 +0100
commit3f1ef1f11d72271b08eeff0330bd65d02caaa3f7 (patch)
treefad1af33ea723e7b1ce4ed924f9ef4b6974bb02a /addons/web/static/lib/jquery.mjs.nestedSortable/jquery.mjs.nestedSortable.js
parentce65e897f9651082b3d0d7db5c08dd9b0b040b97 (diff)
[FIX] im_livechat: prevent starting multiple poll
bus.poll() should be a private function, as it initializes a new longpolling. Only bus.start_polling() should be called as it prevents running multiple polls concurrently. On the website, bus.poll() was called each time the user clicked on the livechat button, blocking the whole UI if the user clicked 6 times in a row on that button, as only 6 RPCs can be done concurrently. A consequence of this fix is that the poll isn't restarted if the user opens a new livechat session just after closing one, so the messages sent through that session are delayed (~50 seconds). To circumvent this situation, we simply don't restore the livechat button after closing a livechat session (the button re-appears anyway at the next click, or after a refresh).
Diffstat (limited to 'addons/web/static/lib/jquery.mjs.nestedSortable/jquery.mjs.nestedSortable.js')
0 files changed, 0 insertions, 0 deletions