Fixed: Apparently Microsoft thinks that you should cast to IDisposable first.

This commit is contained in:
Leonardo Galli 2018-12-02 19:04:28 +01:00
parent d4061bd13c
commit d02d71c336
1 changed files with 1 additions and 1 deletions

View File

@ -95,7 +95,7 @@ namespace NzbDrone.Common.Http.Dispatchers
finally
{
webRequest = null;
httpWebResponse?.Dispose();
(httpWebResponse as IDisposable)?.Dispose();
httpWebResponse = null;
}
}