diff --git a/R/updater.R b/R/updater.R index 29208a8..7f1e871 100644 --- a/R/updater.R +++ b/R/updater.R @@ -46,6 +46,15 @@ start_polling <- function(timeout = 10L, } while (private$running) { + tryCatch( + { + later::run_now() + }, + error = function(e) { + warning("Error in scheduled task: ", e$message) + } + ) + updates <- tryCatch( { self$bot$get_updates(