From bdec0f52e7e3b5061da2c5795cb9d9ac78f8a0f8 Mon Sep 17 00:00:00 2001 From: Taloth Saldono Date: Thu, 20 Mar 2014 22:30:20 +0100 Subject: [PATCH] Removed duplicate ScheduledTask to prevent error on first database initialization. --- src/NzbDrone.Core/Jobs/TaskManager.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/NzbDrone.Core/Jobs/TaskManager.cs b/src/NzbDrone.Core/Jobs/TaskManager.cs index 65cc35f80..d4680655e 100644 --- a/src/NzbDrone.Core/Jobs/TaskManager.cs +++ b/src/NzbDrone.Core/Jobs/TaskManager.cs @@ -48,7 +48,6 @@ namespace NzbDrone.Core.Jobs { var defaultTasks = new[] { - new ScheduledTask{ Interval = 1, TypeName = typeof(DownloadedEpisodesScanCommand).FullName}, new ScheduledTask{ Interval = 1, TypeName = typeof(TrackedCommandCleanupCommand).FullName}, new ScheduledTask{ Interval = 1, TypeName = typeof(CheckForFailedDownloadCommand).FullName}, new ScheduledTask{ Interval = 5, TypeName = typeof(CheckHealthCommand).FullName}, @@ -73,7 +72,7 @@ namespace NzbDrone.Core.Jobs var currentTasks = _scheduledTaskRepository.All().ToList(); - _logger.Debug("Initializing jobs. Available: {0} Existing:{1}", defaultTasks.Count(), currentTasks.Count()); + _logger.Debug("Initializing jobs. Available: {0} Existing: {1}", defaultTasks.Count(), currentTasks.Count()); foreach (var job in currentTasks) {