mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
fix web socket attachment to session object
This commit is contained in:
parent
4b4c5635af
commit
14720063bc
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user