mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-05-04 18:09:12 +03:00
[PR #16080] Fix race condition in SessionInfoWebSocketListener on disconnect #14521
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/jellyfin/jellyfin/pull/16080
Author: @ZeusCraft10
Created: 1/22/2026
Status: 🔄 Open
Base:
master← Head:fix/16060-session-disconnect-race📝 Commits (1)
520497bFix race condition in SessionInfoWebSocketListener on disconnect📊 Changes
1 file changed (+21 additions, -1 deletions)
View changed files
📝
Jellyfin.Api/WebSocketListeners/SessionInfoWebSocketListener.cs(+21 -1)📄 Description
Changes
This PR fixes a race condition where the client UI remains in a "Connected" state after disconnecting. It introduces a 1.5s delay in
SessionInfoWebSocketListenerwhen receiving aSessionsStopmessage, allowing the concurrent HTTP Disconnect request to propagate theSessionEndedevent before the listener shuts down. This ensures the final "Idle" state is sent to the client.Issues
Fixes #16060
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.