added locking to RssSyncJob

This commit is contained in:
kay.one 2013-03-04 21:55:36 -08:00
parent 6c17639ade
commit 333a88ebd1
1 changed files with 6 additions and 2 deletions

View File

@ -56,7 +56,11 @@ namespace NzbDrone.Core.Jobs.Implementations
{ {
try try
{ {
reports.AddRange(indexer.FetchRss()); var parseResults = indexer.FetchRss();
lock (reports)
{
reports.AddRange(parseResults);
}
} }
catch (Exception e) catch (Exception e)
{ {