Merge pull request #2050 from Bond-009/nullref

Fix possible nullref when updating packages
This commit is contained in:
dkanada
2019-12-05 15:23:48 +09:00
committed by GitHub
4 changed files with 16 additions and 9 deletions

View File

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