diff options
| author | Joshua M. Boniface <joshua@boniface.me> | 2019-01-03 14:00:16 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-01-03 14:00:16 -0500 |
| commit | 89a3db9346be631cff524c6e3925c9ac25b5460d (patch) | |
| tree | 0043d7980ca2ac4a77f3fa563e5abb8fba3a2bc8 /Emby.Server.Implementations/ApplicationHost.cs | |
| parent | 86275bcc55cfe6cf6798d152a53f79c6f7811b52 (diff) | |
| parent | 3d6dac26f4172ab1dae016e01ea7ca94dad665a6 (diff) | |
Merge pull request #286 from Bond-009/cleanup
Clean up HttpClientManager, LiveTvManager and InstallationManager
Diffstat (limited to 'Emby.Server.Implementations/ApplicationHost.cs')
| -rw-r--r-- | Emby.Server.Implementations/ApplicationHost.cs | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/Emby.Server.Implementations/ApplicationHost.cs b/Emby.Server.Implementations/ApplicationHost.cs index 3cc6151f1..ff6586ac1 100644 --- a/Emby.Server.Implementations/ApplicationHost.cs +++ b/Emby.Server.Implementations/ApplicationHost.cs @@ -640,15 +640,14 @@ namespace Emby.Server.Implementations /// Gets the exports. /// </summary> /// <typeparam name="T"></typeparam> - /// <param name="manageLiftime">if set to <c>true</c> [manage liftime].</param> + /// <param name="manageLifetime">if set to <c>true</c> [manage lifetime].</param> /// <returns>IEnumerable{``0}.</returns> public IEnumerable<T> GetExports<T>(bool manageLifetime = true) { var parts = GetExportTypes<T>() .Select(CreateInstanceSafe) .Where(i => i != null) - .Cast<T>() - .ToList(); + .Cast<T>(); if (manageLifetime) { @@ -703,7 +702,7 @@ namespace Emby.Server.Implementations /// <summary> /// Runs the startup tasks. /// </summary> - public async Task RunStartupTasks() + public Task RunStartupTasks() { Resolve<ITaskManager>().AddTasks(GetExports<IScheduledTask>(false)); @@ -736,6 +735,8 @@ namespace Emby.Server.Implementations Logger.LogInformation("All entry points have started"); //LoggerFactory.RemoveConsoleOutput(); + + return Task.CompletedTask; } private void RunEntryPoints(IEnumerable<IServerEntryPoint> entryPoints, bool isBeforeStartup) |
