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…
Reference in New Issue
Block a user