Do not use IAsyncEnumerable unnecessarily

This commit is contained in:
Mark Monteiro
2020-04-06 22:04:24 -04:00
parent 0cd7cd611e
commit 8e3b09a996
3 changed files with 9 additions and 9 deletions

View File

@@ -55,9 +55,8 @@ namespace Emby.Server.Implementations.ScheduledTasks
{
progress.Report(0);
var packagesToInstall = await _installationManager.GetAvailablePluginUpdates(cancellationToken)
.ToListAsync(cancellationToken)
.ConfigureAwait(false);
var packageFetchTask = _installationManager.GetAvailablePluginUpdates(cancellationToken);
var packagesToInstall = (await packageFetchTask.ConfigureAwait(false)).ToList();
progress.Report(10);