Skip to content

Commit 01bef21

Browse files
ono-maxst0012
andcommitted
Update lib/debug/server_cdp.rb
Co-authored-by: Stan Lo <[email protected]>
1 parent 89aded5 commit 01bef21

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

lib/debug/server_cdp.rb

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -489,12 +489,8 @@ def process
489489
id: SecureRandom.hex
490490
when 'Runtime.terminateExecution'
491491
send_response req
492-
if SESSION.in_subsession?
493-
@q_msg << 'kill!'
494-
else
495-
@q_msg << 'kill!'
496-
pause
497-
end
492+
@q_msg << 'kill!'
493+
pause unless SESSION.in_subsession?
498494
when 'Page.startScreencast', 'Emulation.setTouchEmulationEnabled', 'Emulation.setEmitTouchEventsForMouse',
499495
'Runtime.compileScript', 'Page.getResourceContent', 'Overlay.setPausedInDebuggerMessage',
500496
'Runtime.releaseObjectGroup', 'Runtime.discardConsoleEntries', 'Log.clear', 'Runtime.runIfWaitingForDebugger'

0 commit comments

Comments
 (0)