[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mono-patches
Subject:    [Mono-patches] [mono/mono] 0bd026b0: Handle possible exceptions
From:       "Lluis Sanchez (lluis () novell ! com)" <mono-patches () lists ! ximian ! com>
Date:       2011-01-31 15:36:43
Message-ID: 20110131153643.59EE522127 () mono ! ximian ! com
[Download RAW message or body]


   Branch: refs/heads/mono-2-8
     Home: https://github.com/mono/mono

   Commit: 0bd026b0b5280de88b8f83246cbe62e27a7d5f63
   Author: Lluis Sanchez <lluis@novell.com>
     Date: 01/31/2011 10:35:16
      URL: https://github.com/mono/mono/commit/0bd026b0b5280de88b8f83246cbe62e27a7d5f63

Handle possible exceptions thrown by Socket.Close

Changed paths:
 M mcs/class/Mono.Posix/Mono.Remoting.Channels.Unix/UnixServerChannel.cs

Modified: mcs/class/Mono.Posix/Mono.Remoting.Channels.Unix/UnixServerChannel.cs
===================================================================
--- a/mcs/class/Mono.Posix/Mono.Remoting.Channels.Unix/UnixServerChannel.cs
+++ b/mcs/class/Mono.Posix/Mono.Remoting.Channels.Unix/UnixServerChannel.cs
@@ -310,9 +310,12 @@ namespace Mono.Remoting.Channels.Unix
             }
             finally
             {
-                _stream.Close();
-				_client.Close ();
-                _serverChannel.ReleaseConnection (Thread.CurrentThread);
+				try {
+	                _serverChannel.ReleaseConnection (Thread.CurrentThread);
+	                _stream.Close();
+					_client.Close ();
+				} catch {
+				}
             }
         }
         




_______________________________________________
Mono-patches maillist  -  Mono-patches@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-patches
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic