Skip to content

Commit

Permalink
Automatically close chromote session when done (#429)
Browse files Browse the repository at this point in the history
Fixes #422
  • Loading branch information
hadley authored Oct 25, 2024
1 parent 205f054 commit 78b3e1f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions R/live.R
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,10 @@ LiveHTML <- R6::R6Class(
private = list(
root_id = NULL,

finalize = function() {
self$session$close()
},

check_active = function() {
if (new_chromote && !self$session$is_active()) {
suppressMessages({
Expand Down

0 comments on commit 78b3e1f

Please sign in to comment.