Skip to content

Commit

Permalink
Fixed: Retrying download on not suppressed HTTP errors
Browse files Browse the repository at this point in the history
  • Loading branch information
mynameisbogdan committed Apr 25, 2024
1 parent c8a6b9f commit 3db7807
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/NzbDrone.Core/Download/DownloadClientBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ public abstract class DownloadClientBase<TSettings> : IDownloadClient
{
{ Result.HasHttpServerError: true } => PredicateResult.True(),
{ Result.StatusCode: HttpStatusCode.RequestTimeout } => PredicateResult.True(),
{ Exception: HttpException { Response.HasHttpServerError: true } } => PredicateResult.True(),
_ => PredicateResult.False()
},
Delay = TimeSpan.FromSeconds(3),
Expand Down

0 comments on commit 3db7807

Please sign in to comment.