From d14cca30d7e26a2df83ea586e8b84f8911a4beac Mon Sep 17 00:00:00 2001 From: Bogdan Date: Mon, 5 May 2025 10:58:26 +0300 Subject: [PATCH] Use the thrown exception in http timeout handling (cherry picked from commit 14e324ee30694ae017a39fd6f66392dc2d104617) --- 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 35f88525e2..2847789197 100644 --- a/src/NzbDrone.Common/Http/Dispatchers/ManagedHttpDispatcher.cs +++ b/src/NzbDrone.Common/Http/Dispatchers/ManagedHttpDispatcher.cs @@ -141,7 +141,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); } }