mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-18 06:53:07 +03:00
Fix nullref exception and added logging
This commit is contained in:
@@ -53,11 +53,12 @@ namespace Emby.Server.Implementations.Session
|
||||
|
||||
private void OnConnectionClosed(object sender, EventArgs e)
|
||||
{
|
||||
_logger.LogDebug("Removing websocket from session {Session}", _session.Id);
|
||||
var connection = (IWebSocketConnection)sender;
|
||||
_logger.LogDebug("Removing websocket from session {Session}", _session.Id);
|
||||
_sockets.Remove(connection);
|
||||
_sessionManager.CloseIfNeeded(_session);
|
||||
connection.Closed -= OnConnectionClosed;
|
||||
connection.Dispose();
|
||||
_sessionManager.CloseIfNeeded(_session);
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
|
||||
Reference in New Issue
Block a user