fix(xo-web): dont try reconnecting websocket on sign out

This commit is contained in:
Julien Fontanet
2019-03-22 17:34:32 +01:00
parent 00436e744a
commit 93da70709e
2 changed files with 4 additions and 0 deletions

View File

@@ -7,6 +7,7 @@
### Bug fixes
- [Home] Always sort the items by their names as a secondary sort criteria [#3983](https://github.com/vatesfr/xen-orchestra/issues/3983) (PR [#4047](https://github.com/vatesfr/xen-orchestra/pull/4047))
- Properly redirect to sign in page instead of being stuck in a refresh loop
### Released packages

View File

@@ -69,6 +69,9 @@ export const isVmRunning = vm => vm && vm.power_state === 'Running'
// ===================================================================
export const signOut = () => {
// prevent automatic reconnection
xo.removeListener('closed', connect)
cookies.expire('token')
window.location.reload(true)
}