diff --git a/lib/debug/server_cdp.rb b/lib/debug/server_cdp.rb index 33358bf3d..31c2d1156 100644 --- a/lib/debug/server_cdp.rb +++ b/lib/debug/server_cdp.rb @@ -489,12 +489,8 @@ def process id: SecureRandom.hex when 'Runtime.terminateExecution' send_response req - if SESSION.in_subsession? - @q_msg << 'kill!' - else - @q_msg << 'kill!' - pause - end + @q_msg << 'kill!' + pause unless SESSION.in_subsession? when 'Page.startScreencast', 'Emulation.setTouchEmulationEnabled', 'Emulation.setEmitTouchEventsForMouse', 'Runtime.compileScript', 'Page.getResourceContent', 'Overlay.setPausedInDebuggerMessage', 'Runtime.releaseObjectGroup', 'Runtime.discardConsoleEntries', 'Log.clear', 'Runtime.runIfWaitingForDebugger'