Merge pull request #9320 from MBR-0001/master

Fix NRE in DisposeAsyncCore
This commit is contained in:
Claus Vium
2023-02-15 21:59:24 +01:00
committed by GitHub

View File

@@ -1184,10 +1184,13 @@ namespace Emby.Server.Implementations
}
}
// used for closing websockets
foreach (var session in _sessionManager.Sessions)
if (_sessionManager != null)
{
await session.DisposeAsync().ConfigureAwait(false);
// used for closing websockets
foreach (var session in _sessionManager.Sessions)
{
await session.DisposeAsync().ConfigureAwait(false);
}
}
}
}