Fix websocket handling

This commit is contained in:
Bond-009
2019-12-27 14:42:53 +01:00
committed by Bond_009
parent 5ca68f9623
commit 4d311870d2
3 changed files with 33 additions and 50 deletions

View File

@@ -57,7 +57,6 @@ namespace Emby.Server.Implementations.Session
_logger.LogDebug("Removing websocket from session {Session}", _session.Id);
_sockets.Remove(connection);
connection.Closed -= OnConnectionClosed;
connection.Dispose();
_sessionManager.CloseIfNeeded(_session);
}
@@ -96,7 +95,6 @@ namespace Emby.Server.Implementations.Session
foreach (var socket in _sockets)
{
socket.Closed -= OnConnectionClosed;
socket.Dispose();
}
_disposed = true;