diff options
author | Alexander Köplinger <alex.koeplinger@outlook.com> | 2018-02-28 19:28:51 +0300 |
---|---|---|
committer | Alexander Köplinger <alex.koeplinger@outlook.com> | 2018-02-28 19:28:51 +0300 |
commit | fa21013d7f071c9746d55bb976135940762acb8a (patch) | |
tree | 5d0016659956d6a17746d97aff9346791b3c4c0d /mcs/class/System.Net.Http.WinHttpHandler | |
parent | 2c2fac29ebc4614ca3786d30d582ed8db906a0cc (diff) |
Don't throw NotImplementedException in Dispose()
We had a few stubs that threw not implemented exceptions in Dispose()
which causes the finalizer thread to abort.
Since those classes throw in the constructor already there's no way
to create a valid object and we can remove the throw in Dispose().
Fixes https://github.com/mono/mono/issues/7338
Diffstat (limited to 'mcs/class/System.Net.Http.WinHttpHandler')
-rw-r--r-- | mcs/class/System.Net.Http.WinHttpHandler/System.Net.Http/WinHttpHandler.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mcs/class/System.Net.Http.WinHttpHandler/System.Net.Http/WinHttpHandler.cs b/mcs/class/System.Net.Http.WinHttpHandler/System.Net.Http/WinHttpHandler.cs index e2db5f66fac..1f3c9c58901 100644 --- a/mcs/class/System.Net.Http.WinHttpHandler/System.Net.Http/WinHttpHandler.cs +++ b/mcs/class/System.Net.Http.WinHttpHandler/System.Net.Http/WinHttpHandler.cs @@ -85,7 +85,7 @@ namespace System.Net.Http public WindowsProxyUsePolicy WindowsProxyUsePolicy { get { throw new PlatformNotSupportedException (); } set { throw new PlatformNotSupportedException (); } } - protected override void Dispose (bool disposing) { throw new PlatformNotSupportedException (); } + protected override void Dispose (bool disposing) { } protected override Task<HttpResponseMessage> SendAsync (HttpRequestMessage request, Threading.CancellationToken cancellationToken) { throw new PlatformNotSupportedException (); } } |