Better handling for #388

This commit is contained in:
tidusjar 2016-07-06 14:35:20 +01:00
parent e86bb6624f
commit 26e1d14812
3 changed files with 80 additions and 61 deletions

View file

@ -126,7 +126,7 @@ namespace PlexRequests.Api
request.AddUrlSegment("apikey", apiKey);
var obj = RetryHandler.Execute<CouchPotatoProfiles>(() => Api.Execute<CouchPotatoProfiles> (request, url),null,
var obj = RetryHandler.Execute(() => Api.Execute<CouchPotatoProfiles> (request, url),null,
(exception, timespan) => Log.Error (exception, "Exception when calling GetProfiles for CP, Retrying {0}", timespan));
return obj;