Skip to content

Commit

Permalink
Automatically close chromote session when done
Browse files Browse the repository at this point in the history
Hopefully fixes #422
  • Loading branch information
hadley committed Oct 24, 2024
1 parent 205f054 commit c5d7c58
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 c5d7c58

Please sign in to comment.