mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-24 01:34:45 +03:00
Fix nullability errors in Emby.Server.Implementations
This commit is contained in:
@@ -55,8 +55,13 @@ namespace Emby.Server.Implementations.Session
|
||||
connection.Closed += OnConnectionClosed;
|
||||
}
|
||||
|
||||
private void OnConnectionClosed(object sender, EventArgs e)
|
||||
private void OnConnectionClosed(object? sender, EventArgs e)
|
||||
{
|
||||
if (sender == null)
|
||||
{
|
||||
throw new NullReferenceException(nameof(sender));
|
||||
}
|
||||
|
||||
var connection = (IWebSocketConnection)sender;
|
||||
_logger.LogDebug("Removing websocket from session {Session}", _session.Id);
|
||||
_sockets.Remove(connection);
|
||||
|
||||
Reference in New Issue
Block a user