Register and construct ILocalizationManager correctly

This commit is contained in:
Mark Monteiro
2020-04-04 20:21:48 -04:00
parent cbc0224aaf
commit 5d648bf54f
3 changed files with 18 additions and 20 deletions

View File

@@ -208,7 +208,7 @@ namespace Jellyfin.Server
// Re-use the web host service provider in the app host since ASP.NET doesn't allow a custom service collection.
appHost.ServiceProvider = webHost.Services;
appHost.InitializeServices();
await appHost.InitializeServices().ConfigureAwait(false);
Migrations.MigrationRunner.Run(appHost, _loggerFactory);
try