set MaxDegreeOfParallelism

This commit is contained in:
kaso17 2017-03-20 20:11:16 +01:00
parent 02de1239aa
commit 370564d9d4
1 changed files with 1 additions and 1 deletions

View File

@ -538,7 +538,7 @@ namespace Jackett.Controllers
trackers = trackers.Where(t => t.TorznabCaps.Categories.Select(c => c.ID).Contains(value.Category)).ToList();
}
Parallel.ForEach(trackers.ToList(), indexer =>
Parallel.ForEach(trackers.ToList(), new ParallelOptions { MaxDegreeOfParallelism = 1000 }, indexer =>
{
try
{