File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -1091,12 +1091,18 @@ mono_debugger_get_generate_debug_info ()
1091
1091
return disable_optimizations ;
1092
1092
}
1093
1093
1094
+ // Declare transport_close2 method
1095
+ static void transport_close2 (void );
1096
+
1094
1097
MONO_API void
1095
1098
mono_debugger_disconnect ()
1096
1099
{
1097
- stop_debugger_thread ();
1098
- transport_connect (agent_config .address );
1099
- start_debugger_thread ();
1100
+ // We just need to close the debugger client socket since
1101
+ // the thread is blocked in the RECV method. The debugger_thread
1102
+ // loop already handles the debugger client disconnection properly,
1103
+ // so calling transport_close2 method is enough since the method
1104
+ // only closes the debugger client socket.
1105
+ transport_close2 ();
1100
1106
}
1101
1107
1102
1108
typedef void (* MonoDebuggerAttachFunc )(gboolean attached );
You can’t perform that action at this time.
0 commit comments