We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 85d306e commit a3040b5Copy full SHA for a3040b5
lib/browserstack/local.rb
@@ -85,8 +85,7 @@ def start(options = {})
85
end
86
87
def isRunning
88
- resp = Net::HTTP.get(URI.parse("http://bs-local.com:45691/check")) rescue nil
89
- resp && !resp.match(/running/i).nil?
+ return true if (!@pid.nil? && Process::kill(0, @pid)) rescue false
90
91
92
def stop
0 commit comments