From d02d71c33634e17492ad01cafa27c7948435a693 Mon Sep 17 00:00:00 2001 From: Leonardo Galli Date: Sun, 2 Dec 2018 19:04:28 +0100 Subject: [PATCH] Fixed: Apparently Microsoft thinks that you should cast to IDisposable first. --- 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 e094b1514..01b345f9a 100644 --- a/src/NzbDrone.Common/Http/Dispatchers/ManagedHttpDispatcher.cs +++ b/src/NzbDrone.Common/Http/Dispatchers/ManagedHttpDispatcher.cs @@ -95,7 +95,7 @@ namespace NzbDrone.Common.Http.Dispatchers finally { webRequest = null; - httpWebResponse?.Dispose(); + (httpWebResponse as IDisposable)?.Dispose(); httpWebResponse = null; } }