Start startup tasks async

This commit is contained in:
Bond_009
2019-01-27 15:40:37 +01:00
parent ee89236fe8
commit 85a58fd655
25 changed files with 87 additions and 61 deletions

View File

@@ -103,8 +103,6 @@ namespace Jellyfin.Server
appHost.ImageProcessor.ImageEncoder = GetImageEncoder(fileSystem, appPaths, appHost.LocalizationManager);
_logger.LogInformation("Running startup tasks");
await appHost.RunStartupTasks();
// TODO: read input for a stop command
@@ -118,8 +116,6 @@ namespace Jellyfin.Server
{
// Don't throw on cancellation
}
_logger.LogInformation("Disposing app host");
}
if (_restartOnShutdown)