Skip to content
Snippets Groups Projects
Commit 225f8088 authored by tsm-odoo's avatar tsm-odoo
Browse files

[FIX] bus: reconnect websocket after user log in/out


Before this PR, a websocket would wait for the server to close
it with a `SessionExpired` close code to be refreshed after the user
logged in/out. Indeed, the server is responsible to check for outdated
sessions on incoming/outgoing messages.

This is problematic: a user logging in with more than one tab opened,
would have to wait to receive its messages. This PR solves this issue
by refreshing the connection immediately in this scenario.

closes odoo/odoo#101385

Signed-off-by: default avatarSébastien Theys (seb) <seb@odoo.com>
parent 97421796
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment