fix web socket attachment to session object

This commit is contained in:
Luke Pulverenti 2013-12-26 13:46:38 -05:00
parent 4b4c5635af
commit 14720063bc

View File

@ -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;