diff --git a/Tranga/TaskManager.cs b/Tranga/TaskManager.cs index 06128b6..8efd325 100644 --- a/Tranga/TaskManager.cs +++ b/Tranga/TaskManager.cs @@ -9,7 +9,7 @@ namespace Tranga; /// public class TaskManager { - private readonly Dictionary> _chapterCollection; + private readonly Dictionary> _chapterCollection = new(); private readonly HashSet _allTasks; private bool _continueRunning = true; private readonly Connector[] _connectors; @@ -26,7 +26,6 @@ public class TaskManager if (komgaBaseUrl != null && komgaUsername != null && komgaPassword != null) this.komga = new Komga(komgaBaseUrl, komgaUsername, komgaPassword); this._connectors = new Connector[]{ new MangaDex(folderPath) }; - _chapterCollection = new(); _allTasks = new HashSet(); Thread taskChecker = new(TaskCheckerThread); @@ -36,7 +35,6 @@ public class TaskManager public TaskManager(SettingsData settings) { this._connectors = new Connector[]{ new MangaDex(settings.downloadLocation) }; - _chapterCollection = new(); this.downloadLocation = settings.downloadLocation; this.komga = settings.komga; _allTasks = settings.allTasks;