File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -147,7 +147,7 @@ def req_terminate_debuggee
147147 case ENV [ 'RUBY_DEBUG_TEST_UI' ]
148148 when 'vscode'
149149 send_dap_request 'terminate'
150- assert_disconnect_result
150+ cleanup_reader
151151 when 'chrome'
152152 send_cdp_request 'Runtime.terminateExecution'
153153 end
@@ -310,10 +310,10 @@ def req_disconnect
310310 send_dap_request 'disconnect' ,
311311 restart : false ,
312312 terminateDebuggee : false
313- assert_disconnect_result
313+ cleanup_reader
314314 when 'chrome'
315315 @web_sock . send_close_connection
316- assert_disconnect_result
316+ cleanup_reader
317317 end
318318 end
319319
@@ -341,13 +341,13 @@ def req_set_breakpoints_on_dap
341341 }
342342 end
343343
344- def assert_disconnect_result
344+ def cleanup_reader
345+ @reader_thread . raise Detach
346+
345347 case ENV [ 'RUBY_DEBUG_TEST_UI' ]
346348 when 'vscode'
347- @reader_thread . raise Detach
348349 @sock . close
349350 when 'chrome'
350- @reader_thread . raise Detach
351351 @web_sock . cleanup
352352 end
353353 end
You can’t perform that action at this time.
0 commit comments