From c8f5099423bb0b26258777194a103f619797ca96 Mon Sep 17 00:00:00 2001 From: Bogdan Date: Fri, 9 May 2025 15:57:36 +0300 Subject: [PATCH] Use the thrown exception in http timeout handling --- src/NzbDrone.Common/Http/Dispatchers/ManagedHttpDispatcher.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/NzbDrone.Common/Http/Dispatchers/ManagedHttpDispatcher.cs b/src/NzbDrone.Common/Http/Dispatchers/ManagedHttpDispatcher.cs index 29bb49fa5..3b1bc2d3f 100644 --- a/src/NzbDrone.Common/Http/Dispatchers/ManagedHttpDispatcher.cs +++ b/src/NzbDrone.Common/Http/Dispatchers/ManagedHttpDispatcher.cs @@ -167,7 +167,7 @@ public async Task GetResponseAsync(HttpRequest request, CookieCont } 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); } }