Fix database being in use while trying a master update.

This commit is contained in:
2021-12-10 02:44:01 +00:00
parent ffc23068d7
commit 36f57a58cb
4 changed files with 40 additions and 10 deletions

View File

@@ -277,9 +277,9 @@ namespace Aaru.Core
Start(ctx =>
{
ProgressTask task = ctx.AddTask("Adding known iNES/NES 2.0 headers");
task.MaxValue = sync.NesHeaders.Count;
task.MaxValue = sync.NesHeaders?.Count ?? 0;
foreach(NesHeaderDto header in sync.NesHeaders)
foreach(NesHeaderDto header in sync.NesHeaders ?? new List<NesHeaderDto>())
{
task.Increment(1);