Skip to content

Commit 343bd80

Browse files
committed
listen the Inspector.targetCrashed event
1 parent 16d07e2 commit 343bd80

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

R/chromote.R

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,13 @@ Chromote <- R6Class(
302302
private$sessions[[sid]] <- NULL
303303
session$mark_closed()
304304
})
305+
306+
# When a target crashes, raise a warning.
307+
# The session cannot be closed because no session id is returned by the
308+
# Inspector.targetCrashed event
309+
self$protocol$Inspector$targetCrashed(function(msg) {
310+
warning("A target has crashed.")
311+
})
305312
},
306313

307314
# =========================================================================

0 commit comments

Comments
 (0)