no duplicate keys

This commit is contained in:
glax 2023-05-21 22:02:05 +02:00
parent 737eebf599
commit b55d2a2d06

View File

@ -163,7 +163,7 @@ public class TaskManager
trangaTask.publication?.downloadUrl == publication?.downloadUrl))
{
if(task != TrangaTask.Task.UpdatePublications)
_chapterCollection.Add((Publication)publication!, new List<Chapter>());
_chapterCollection.TryAdd((Publication)publication!, new List<Chapter>());
_allTasks.Add(newTask);
}
}