mirror of
https://github.com/Prowlarr/Prowlarr
synced 2025-12-06 08:34:28 +01:00
Use the thrown exception in http timeout handling
This commit is contained in:
parent
5cc4c3f302
commit
c8f5099423
1 changed files with 1 additions and 1 deletions
|
|
@ -167,7 +167,7 @@ public async Task<HttpResponse> GetResponseAsync(HttpRequest request, CookieCont
|
||||||
}
|
}
|
||||||
catch (OperationCanceledException ex) when (cts.IsCancellationRequested)
|
catch (OperationCanceledException ex) when (cts.IsCancellationRequested)
|
||||||
{
|
{
|
||||||
throw new WebException("Http request timed out", ex.InnerException, WebExceptionStatus.Timeout, null);
|
throw new WebException("Http request timed out", ex, WebExceptionStatus.Timeout, null);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue