Skip to content

Commit a3040b5

Browse files
committed
updated is running
1 parent 85d306e commit a3040b5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/browserstack/local.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,7 @@ def start(options = {})
8585
end
8686

8787
def isRunning
88-
resp = Net::HTTP.get(URI.parse("http://bs-local.com:45691/check")) rescue nil
89-
resp && !resp.match(/running/i).nil?
88+
return true if (!@pid.nil? && Process::kill(0, @pid)) rescue false
9089
end
9190

9291
def stop

0 commit comments

Comments
 (0)