Skip to content

Commit f048689

Browse files
committed
Changed the delay behavour in wsl_installed
1 parent b1a767a commit f048689

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

R/utils.R

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -543,7 +543,12 @@ wsl_installed <- function() {
543543
tryCatch({
544544
# Call can hang indefinitely on Github actions, so explicitly kill
545545
p <- processx::process$new("wsl", "uname")
546-
Sys.sleep(1)
546+
for(i in 1:50) {
547+
Sys.sleep(0.1)
548+
if(!p$is_alive()) {
549+
break
550+
}
551+
}
547552
if (p$is_alive()) {
548553
p$kill()
549554
FALSE

0 commit comments

Comments
 (0)