Fix possible nullref when updating packages

This commit is contained in:
Bond_009
2019-11-24 17:08:28 +01:00
parent 47ad21b6e3
commit 6a6bfa6da9
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);