diff --git a/R/progress-client.R b/R/progress-client.R index 660f3943..21bbcfa5 100644 --- a/R/progress-client.R +++ b/R/progress-client.R @@ -442,7 +442,8 @@ cli_progress_update <- function( } } - if (pb$auto_terminate && !is.na(pb$total) && pb$current == pb$total) { + if (pb$auto_terminate && !is.na(pb$total) && pb$current == pb$total && + pb$total > 1) { cli_progress_done(id, .envir = .envir, result = "done") return(invisible(id)) }