We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 612896f commit e3e492aCopy full SHA for e3e492a
1 file changed
rb/lib/selenium/webdriver/common/service_manager.rb
@@ -60,6 +60,7 @@ def start
60
61
def stop
62
return unless @shutdown_supported
63
+ return if process_exited?
64
65
stop_server
66
@process.poll_for_exit STOP_TIMEOUT
@@ -109,15 +110,11 @@ def start_process
109
110
end
111
112
def stop_process
- return if process_exited?
113
-
114
@process.stop STOP_TIMEOUT
115
@process.io.stdout.close if Platform.jruby? && !WebDriver.logger.debug?
116
117
118
def stop_server
119
120
121
connect_to_server do |http|
122
headers = WebDriver::Remote::Http::Common::DEFAULT_HEADERS.dup
123
http.get('/shutdown', headers)
0 commit comments