diff options
| author | Cody Robibero <cody@robibe.ro> | 2026-09-06 07:45:43 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-09-06 07:45:43 -0400 |
| commit | f898c35b9668318c1200bc6bc1659ffed47ee798 (patch) | |
| tree | a2a7edcc97bf5668f948c1a495e93a55718887c9 /Jellyfin.Server/Program.cs | |
| parent | bbb3a4896395978f8268cd9b32c8d8ca7ba2c15b (diff) | |
| parent | edb6cd11da0c3772ff897757a8364b309e6f7e1a (diff) | |
Merge pull request #17791 from Shadowghost/fix-code-migration
Don't dispose application singletons after running a code migration
Diffstat (limited to 'Jellyfin.Server/Program.cs')
| -rw-r--r-- | Jellyfin.Server/Program.cs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/Jellyfin.Server/Program.cs b/Jellyfin.Server/Program.cs index 58861fc476..35eaff6532 100644 --- a/Jellyfin.Server/Program.cs +++ b/Jellyfin.Server/Program.cs @@ -181,9 +181,7 @@ namespace Jellyfin.Server }) .ConfigureAppConfiguration(config => config.ConfigureAppConfiguration(options, appPaths, startupConfig)) .UseSerilog() - .ConfigureServices(e => e - .RegisterStartupLogger() - .AddSingleton<IServiceCollection>(e)) + .ConfigureServices(e => e.RegisterStartupLogger()) .Build(); /* @@ -308,7 +306,6 @@ namespace Jellyfin.Server .AddSingleton<ServerApplicationPaths>(appPaths) .RegisterStartupLogger(); - migrationStartupServiceProvider.AddSingleton(migrationStartupServiceProvider); var startupService = migrationStartupServiceProvider.BuildServiceProvider(); PrepareDatabaseProvider(startupService); |
