From b55d2a2d0654b8f4126ea618afcf6c4add984fff Mon Sep 17 00:00:00 2001 From: glax Date: Sun, 21 May 2023 22:02:05 +0200 Subject: [PATCH] no duplicate keys --- Tranga/TaskManager.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tranga/TaskManager.cs b/Tranga/TaskManager.cs index 74121c9..6419f8f 100644 --- a/Tranga/TaskManager.cs +++ b/Tranga/TaskManager.cs @@ -163,7 +163,7 @@ public class TaskManager trangaTask.publication?.downloadUrl == publication?.downloadUrl)) { if(task != TrangaTask.Task.UpdatePublications) - _chapterCollection.Add((Publication)publication!, new List()); + _chapterCollection.TryAdd((Publication)publication!, new List()); _allTasks.Add(newTask); } }