Skip to content

Commit

Permalink
[rb] add process status check to the beginning of the stop_process me…
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshoku committed Apr 13, 2022
1 parent a4249a9 commit 754758e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions rb/lib/selenium/webdriver/common/service_manager.rb
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,8 @@ def start_process
end

def stop_process
return if process_exited?

@process.stop STOP_TIMEOUT
@process.io.stdout.close if Platform.jruby? && !WebDriver.logger.debug?
end
Expand Down

0 comments on commit 754758e

Please sign in to comment.