提交 50f83149 编写于 作者: M Michael Hutchinson

Fixi soft debugger dll crash on Windows w/redirected console

Windows socket behaviour seems to be slightly different from
Linux/Mac, and Mono.Debugger.Soft was trying to disconnect a socket
that that doesn't get connected, causing an exception at launch.

For some reason it did check the main debugger socket before trying
to disconnect it, but not the console socket, so only apps with
redirected console output would crash.
上级 920563b6
......@@ -173,7 +173,8 @@ namespace Mono.Debugger.Soft
}
if (con_sock != null) {
con_sock.Disconnect (false);
if (con_sock.Connected)
con_sock.Disconnect (false);
con_sock.Close ();
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册