mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-07-23 06:00:47 +02: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)
|
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);
|
controller.Sockets.Add(message.Connection);
|
||||||
|
|
||||||
session.SessionController = controller;
|
session.SessionController = controller;
|
||||||
|
|
Loading…
Reference in a new issue