The Free Software Media System - Server Backend & API
Fix NRE in DisposeAsyncCore
MBR#0001c338aa7cb5c1
diff --git a/Emby.Server.Implementations/ApplicationHost.cs b/Emby.Server.Implementations/ApplicationHost.csindex 37a9e7715d..d104058cc1 100644--- a/Emby.Server.Implementations/ApplicationHost.cs+++ b/Emby.Server.Implementations/ApplicationHost.cs@@ -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);+ }}}}