Skip to content

Commit

Permalink
Use timeout to prevent processx hang
Browse files Browse the repository at this point in the history
  • Loading branch information
andrjohns committed Aug 30, 2022
1 parent a2ef3b9 commit 903d656
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -535,7 +535,8 @@ wsl_installed <- function() {
FALSE
} else {
wsl_callable <- processx::run(command = "wsl", args = "uname",
error_on_status = FALSE)
error_on_status = FALSE,
timeout = 5)
wsl_callable$status == 0
}
}
Expand Down

0 comments on commit 903d656

Please sign in to comment.