Skip to content

Commit 754758e

Browse files
authored
[rb] add process status check to the beginning of the stop_process method (#10480)
1 parent a4249a9 commit 754758e

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

rb/lib/selenium/webdriver/common/service_manager.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,8 @@ def start_process
110110
end
111111

112112
def stop_process
113+
return if process_exited?
114+
113115
@process.stop STOP_TIMEOUT
114116
@process.io.stdout.close if Platform.jruby? && !WebDriver.logger.debug?
115117
end

0 commit comments

Comments
 (0)