From 78b3e1ff38cd55e217ca61ac1fe0cbf3b33b5b75 Mon Sep 17 00:00:00 2001 From: Hadley Wickham Date: Fri, 25 Oct 2024 10:49:21 -0500 Subject: [PATCH] Automatically close chromote session when done (#429) Fixes #422 --- R/live.R | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/R/live.R b/R/live.R index 91f4a1b..6f7828e 100644 --- a/R/live.R +++ b/R/live.R @@ -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({