Imported Upstream version 5.16.0.135

Former-commit-id: 28d9e60fa3ef68cbdb55d4aeeb9e18679dc66b69
This commit is contained in:
Xamarin Public Jenkins (auto-signing)
2018-09-01 08:21:58 +00:00
parent 29319da080
commit 526ff2cf78
61 changed files with 88 additions and 68 deletions

View File

@ -405,7 +405,6 @@ namespace System.Net
void CloseSocket ()
{
lock (this) {
Debug ($"WC CLOSE SOCKET: Cnc={ID} NS={networkStream} TLS={monoTlsStream}");
if (networkStream != null) {
try {
networkStream.Dispose ();
@ -413,13 +412,6 @@ namespace System.Net
networkStream = null;
}
if (monoTlsStream != null) {
try {
monoTlsStream.Dispose ();
} catch { }
monoTlsStream = null;
}
if (socket != null) {
try {
socket.Dispose ();