Skip to content

Commit

Permalink
Fix shutdown_supported in services [rb]
Browse files Browse the repository at this point in the history
  • Loading branch information
twalpole committed Apr 23, 2019
1 parent 103f12a commit 4570582
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rb/lib/selenium/webdriver/common/service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class Service
@missing_text = nil

class << self
attr_reader :default_port, :driver_path, :executable, :missing_text
attr_reader :default_port, :driver_path, :executable, :missing_text, :shutdown_supported

def chrome(*args)
Chrome::Service.new(*args)
Expand Down Expand Up @@ -100,7 +100,7 @@ def start
end

def stop
return unless @shutdown_supported
return unless self.class.shutdown_supported

stop_server
@process.poll_for_exit STOP_TIMEOUT
Expand Down

0 comments on commit 4570582

Please sign in to comment.