Skip to content

Commit d2c6c63

Browse files
committed
Hotfix timeout condition
1 parent 1a80c42 commit d2c6c63

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

R/check_process.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ check_process <- R6::R6Class(
8080
# finalize only if the last subcheck has reported status. However
8181
# if we stuck in this state for longer than 3 minutes we should
8282
# try to finish anyway, to prevent possible infinite loops.
83-
if (checks[length(checks)] != "" |
84-
Sys.time() - private$time_finish >= as.difftime(3, units = "mins")) {
83+
if (checks[length(checks)] != "" ||
84+
(Sys.time() - self$get_time_finish() >= as.difftime(3, units = "mins"))) {
8585
self$save_results()
8686
private$cache_parsed_results()
8787
private$free_file_descriptors()

0 commit comments

Comments
 (0)