Skip to content

Commit

Permalink
unused var cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
teodesian committed Mar 24, 2021
1 parent ffca483 commit d2db9f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Playwright.pm
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ sub quit ($self) {

# 0 is always WCONTINUED, 1 is always WNOHANG, and POSIX is an expensive import
# When 0 is returned, the process is still active, so it needs more persuasion
foreach my $tick (0..3) {
foreach (0..3) {
return unless waitpid( $self->{pid}, 1) == 0;
sleep 1;
}
Expand All @@ -438,7 +438,7 @@ sub quit ($self) {
kill('TERM', $self->{pid});

#XXX unfortunately I can't just do a SIGALRM, because blocking system calls can't be intercepted on win32
foreach my $tick (0..$self->{timeout}) {
foreach (0..$self->{timeout}) {
return unless waitpid( $self->{pid}, 1 ) == 0;
sleep 1;
}
Expand Down

0 comments on commit d2db9f1

Please sign in to comment.