1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2026-04-27 23:06:29 -04:00

Fixed: Don't retry grabbing the same release if download client is unavailable

Closes #3116
This commit is contained in:
Mark McDowall
2023-05-20 20:51:24 -07:00
parent f946d78153
commit b38c1255dc
5 changed files with 32 additions and 8 deletions
@@ -139,7 +139,14 @@ namespace NzbDrone.Core.Download.Pending
public List<ReleaseInfo> GetPending()
{
var releases = _repository.All().Select(p => p.Release).ToList();
var releases = _repository.All().Select(p =>
{
var release = p.Release;
release.PendingReleaseReason = p.Reason;
return release;
}).ToList();
if (releases.Any())
{