mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-04-18 19:15:10 -04:00
Fixed: (Indexers) Rate limit auth requests
This commit is contained in:
parent
e3480d1143
commit
8656d2784b
1 changed files with 5 additions and 0 deletions
|
@ -493,6 +493,11 @@ namespace NzbDrone.Core.Indexers
|
|||
{
|
||||
request.Encoding = Encoding;
|
||||
|
||||
if (request.RateLimit < RateLimit)
|
||||
{
|
||||
request.RateLimit = RateLimit;
|
||||
}
|
||||
|
||||
var response = await _httpClient.ExecuteProxiedAsync(request, Definition);
|
||||
|
||||
_eventAggregator.PublishEvent(new IndexerAuthEvent(Definition.Id, !response.HasHttpError, response.ElapsedTime));
|
||||
|
|
Loading…
Add table
Reference in a new issue