The Free Software Media System - Server Backend & API
Backport pull request #11539 from jellyfin/release-10.9.z
crobiberoe5ecdcf8c99f
diff --git a/Emby.Server.Implementations/ApplicationHost.cs b/Emby.Server.Implementations/ApplicationHost.csindex 6add7e0b39..c394b25bd5 100644--- a/Emby.Server.Implementations/ApplicationHost.cs+++ b/Emby.Server.Implementations/ApplicationHost.cs@@ -422,7 +422,7 @@ namespace Emby.Server.Implementations// Initialize runtime stat collectionif (ConfigurationManager.Configuration.EnableMetrics){- DotNetRuntimeStatsBuilder.Default().StartCollecting();+ _disposableParts.Add(DotNetRuntimeStatsBuilder.Default().StartCollecting());}var networkConfiguration = ConfigurationManager.GetNetworkConfiguration();diff --git a/Jellyfin.Server/Program.cs b/Jellyfin.Server/Program.csindex fd76969062..295fb8112f 100644--- a/Jellyfin.Server/Program.cs+++ b/Jellyfin.Server/Program.cs@@ -185,6 +185,7 @@ namespace Jellyfin.Server}catch (Exception ex){+ _restartOnShutdown = false;_logger.LogCritical(ex, "Error while starting server");}finally