提交 3d2caadf 编写于 作者: L Lluis Sanchez

Handle possible exceptions thrown by Socket.Close

上级 63a9a149
...@@ -310,9 +310,12 @@ namespace Mono.Remoting.Channels.Unix ...@@ -310,9 +310,12 @@ namespace Mono.Remoting.Channels.Unix
} }
finally finally
{ {
_stream.Close(); try {
_client.Close (); _serverChannel.ReleaseConnection (Thread.CurrentThread);
_serverChannel.ReleaseConnection (Thread.CurrentThread); _stream.Close();
_client.Close ();
} catch {
}
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册