We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0ca05ed commit 79ea5ccCopy full SHA for 79ea5cc
1 file changed
browserstack/local.py
@@ -50,18 +50,9 @@ def start(self, **kwargs):
50
time.sleep(1)
51
52
def is_running(self):
53
- try:
54
- response = urllib2.urlopen('http://bs-local.com:45691/check')
55
- except urllib2.URLError:
56
- return False
57
-
58
- data = ''
59
- while True:
60
- chunk = response.read(8192)
61
- if not chunk:
62
- break
63
- data += chunk
64
- return 'running' in data
+ if (hasattr(self, 'proc')):
+ return True if self.proc.poll() is None else False
+ return False
65
66
def __add_arg(self, key, value):
67
if key == 'verbose' and value:
0 commit comments