Skip to content

Commit 78b3e1f

Browse files
authored
Automatically close chromote session when done (#429)
Fixes #422
1 parent 205f054 commit 78b3e1f

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

R/live.R

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,10 @@ LiveHTML <- R6::R6Class(
264264
private = list(
265265
root_id = NULL,
266266

267+
finalize = function() {
268+
self$session$close()
269+
},
270+
267271
check_active = function() {
268272
if (new_chromote && !self$session$is_active()) {
269273
suppressMessages({

0 commit comments

Comments
 (0)