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

pull/3227/head
Leonardo Galli 6 years ago
parent d4061bd13c
commit d02d71c336

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

Loading…
Cancel
Save