diff options
author | Miguel de Icaza <miguel@gnome.org> | 2003-08-13 19:35:02 +0400 |
---|---|---|
committer | Miguel de Icaza <miguel@gnome.org> | 2003-08-13 19:35:02 +0400 |
commit | e8bca914b382f8743876269d7f9f593b8e3b3bb5 (patch) | |
tree | 4466d44f59f53def52c386cb0f5406ed335ec429 /mcs/class/System/System.Net.Sockets | |
parent | 794551e8b619f37032ac228c75af6cf61dabf001 (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-x | mcs/class/System/System.Net.Sockets/TcpClient.cs | 2 |
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; } |