From 8877cf99f13cab9a370c73336d50cad610eef78f 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 8ca01f6ec..9d896d15c 100644 --- a/src/NzbDrone.Common/Http/Dispatchers/ManagedHttpDispatcher.cs +++ b/src/NzbDrone.Common/Http/Dispatchers/ManagedHttpDispatcher.cs @@ -141,7 +141,7 @@ namespace NzbDrone.Common.Http.Dispatchers } 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); } }