From c5d7c5889bdec35c058b99a63d1db886e4743374 Mon Sep 17 00:00:00 2001 From: Hadley Wickham Date: Thu, 24 Oct 2024 15:56:14 -0500 Subject: [PATCH] Automatically close chromote session when done Hopefully 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({