Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix WebSocket connection not always reconnecting on session start #1618

Merged
merged 1 commit into from
Apr 13, 2022

Conversation

nielsvanvelzen
Copy link
Member

The updateCredentials() function doesn't perform any action when the connection errored. It might also not do anything when disconnected when the credentials haven't changed. By checking for these states and calling the reconnect function we can be sure a new connection is attempted when updateSession() is called (app start / user switch).

Changes

  • Construct SocketInstance early so we don't need to check for nullability
  • Add public state to SocketHandler
  • Improve updateSession() logic

Issues

@nielsvanvelzen nielsvanvelzen merged commit 5ecaf93 into jellyfin:master Apr 13, 2022
@nielsvanvelzen nielsvanvelzen deleted the ws-reconnect branch April 13, 2022 07:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants