mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-19 21:03:17 -07:00
Fixed
This commit is contained in:
parent
f0b63e0fdd
commit
fb1d3a9e92
13 changed files with 50 additions and 38 deletions
|
@ -8,7 +8,7 @@ namespace PlexRequests.Api
|
|||
public static class RetryHandler
|
||||
{
|
||||
|
||||
private static TimeSpan[] DefaultTime = new TimeSpan[] {
|
||||
private static readonly TimeSpan[] DefaultTime = new TimeSpan[] {
|
||||
TimeSpan.FromSeconds (2),
|
||||
TimeSpan.FromSeconds(5),
|
||||
TimeSpan.FromSeconds(10)};
|
||||
|
@ -44,7 +44,7 @@ namespace PlexRequests.Api
|
|||
timeSpan = DefaultTime;
|
||||
}
|
||||
var policy = Policy.Handle<Exception> ()
|
||||
.WaitAndRetry(timeSpan, (exception, ts) => action(exception, ts));
|
||||
.WaitAndRetry(timeSpan, action);
|
||||
|
||||
return policy;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue