Skip to content
This repository has been archived by the owner on Aug 12, 2021. It is now read-only.

Commit

Permalink
Ensure that the browser process is stopped in the exit handler.
Browse files Browse the repository at this point in the history
Signed-off-by: Titus Fortner <titusfortner@gmail.com>
  • Loading branch information
bsedat authored and titusfortner committed Mar 4, 2016
1 parent 4be7c77 commit 0d942bc
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion rb/lib/selenium/webdriver/chrome/service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def stop

@process.poll_for_exit STOP_TIMEOUT
rescue ChildProcess::TimeoutError
# ok, force quit
ensure
@process.stop STOP_TIMEOUT
end

Expand Down
2 changes: 1 addition & 1 deletion rb/lib/selenium/webdriver/edge/service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def stop

@process.poll_for_exit STOP_TIMEOUT
rescue ChildProcess::TimeoutError
# ok, force quit
ensure
@process.stop STOP_TIMEOUT
end

Expand Down
2 changes: 1 addition & 1 deletion rb/lib/selenium/webdriver/firefox/service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def stop

@process.poll_for_exit STOP_TIMEOUT
rescue ChildProcess::TimeoutError
# ok, force quit
ensure
@process.stop STOP_TIMEOUT
end

Expand Down
2 changes: 1 addition & 1 deletion rb/lib/selenium/webdriver/phantomjs/service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def stop

@process.poll_for_exit STOP_TIMEOUT
rescue ChildProcess::TimeoutError
# ok, force quit
ensure
@process.stop STOP_TIMEOUT

if Platform.jruby? && !$DEBUG
Expand Down

0 comments on commit 0d942bc

Please sign in to comment.