mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-15 21:43:03 +03:00
fix web socket attachment to session object
This commit is contained in:
@@ -114,7 +114,13 @@ namespace MediaBrowser.Server.Implementations.Session
|
||||
|
||||
if (session != null)
|
||||
{
|
||||
var controller = new WebSocketController(session, _appHost);
|
||||
var controller = session.SessionController as WebSocketController;
|
||||
|
||||
if (controller == null)
|
||||
{
|
||||
controller = new WebSocketController(session, _appHost);
|
||||
}
|
||||
|
||||
controller.Sockets.Add(message.Connection);
|
||||
|
||||
session.SessionController = controller;
|
||||
|
||||
Reference in New Issue
Block a user