Merge pull request #9320 from MBR-0001/master

Fix NRE in DisposeAsyncCore
pull/9321/head
Claus Vium 1 year ago committed by GitHub
commit 3fe64f69b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save