From 5a877cbd627a66fd0e046a49006275bc5de67350 Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Wed, 23 Mar 2016 19:04:35 -0700 Subject: [PATCH] Fixed: RSS Sync failing due to one broken indexer --- .../Indexers/FetchAndParseRssService.cs | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/src/NzbDrone.Core/Indexers/FetchAndParseRssService.cs b/src/NzbDrone.Core/Indexers/FetchAndParseRssService.cs index f1f0c48fd..e114f844d 100644 --- a/src/NzbDrone.Core/Indexers/FetchAndParseRssService.cs +++ b/src/NzbDrone.Core/Indexers/FetchAndParseRssService.cs @@ -4,7 +4,6 @@ using NLog; using NzbDrone.Core.Parser.Model; using NzbDrone.Common.TPL; -using System.Collections; using System; namespace NzbDrone.Core.Indexers { @@ -47,11 +46,18 @@ public List Fetch() var task = taskFactory.StartNew(() => { - var indexerFeed = indexerLocal.FetchRecent(); - - lock (result) + try { - result.AddRange(indexerFeed); + var indexerReports = indexerLocal.FetchRecent(); + + lock (result) + { + result.AddRange(indexerReports); + } + } + catch (Exception e) + { + _logger.Error(e, "Error during RSS Sync"); } }).LogExceptions();