mirror of
https://github.com/Radarr/Radarr.git
synced 2024-11-04 10:02:40 +01:00
Fixed: RSS Sync failing due to one broken indexer
This commit is contained in:
parent
99aa25bf83
commit
5a877cbd62
@ -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<ReleaseInfo> 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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user