mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
Fixed: (ExecuteAuth) Request timeout of 15s by default, if not set otherwise
This commit is contained in:
@@ -404,6 +404,11 @@ namespace NzbDrone.Core.Indexers
|
||||
{
|
||||
request.Encoding = Encoding;
|
||||
|
||||
if (request.RequestTimeout == TimeSpan.Zero)
|
||||
{
|
||||
request.RequestTimeout = TimeSpan.FromSeconds(15);
|
||||
}
|
||||
|
||||
var response = await _httpClient.ExecuteProxiedAsync(request, Definition);
|
||||
|
||||
_eventAggregator.PublishEvent(new IndexerAuthEvent(Definition.Id, !response.HasHttpError, response.ElapsedTime));
|
||||
|
Reference in New Issue
Block a user