Skip to content

Commit a71e7a3

Browse files
authored
Merge pull request #42 from RLesur/fix-39-target-crashed
2 parents 16d07e2 + 38e6b60 commit a71e7a3

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("Chromote has received a Inspector.targetCrashed event. This means that the ChromoteSession has probably crashed.")
311+
})
305312
},
306313

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

0 commit comments

Comments
 (0)