Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiguel de Icaza <miguel@gnome.org>2003-08-13 19:35:02 +0400
committerMiguel de Icaza <miguel@gnome.org>2003-08-13 19:35:02 +0400
commite8bca914b382f8743876269d7f9f593b8e3b3bb5 (patch)
tree4466d44f59f53def52c386cb0f5406ed335ec429 /mcs/class/System/System.Net.Sockets
parent794551e8b619f37032ac228c75af6cf61dabf001 (diff)
Close the client, if we dont create the stream
svn path=/trunk/mcs/; revision=17307
Diffstat (limited to 'mcs/class/System/System.Net.Sockets')
-rwxr-xr-xmcs/class/System/System.Net.Sockets/TcpClient.cs2
1 files changed, 2 insertions, 0 deletions
diff --git a/mcs/class/System/System.Net.Sockets/TcpClient.cs b/mcs/class/System/System.Net.Sockets/TcpClient.cs
index c2efc35a456..247443e82eb 100755
--- a/mcs/class/System/System.Net.Sockets/TcpClient.cs
+++ b/mcs/class/System/System.Net.Sockets/TcpClient.cs
@@ -339,6 +339,8 @@ namespace System.Net.Sockets
s.Close();
active = false;
s = null;
+ } else if (client != null){
+ client.Close ();
}
client = null;
}