Skip to content

Commit 79ea5cc

Browse files
committed
revert is running logic
1 parent 0ca05ed commit 79ea5cc

1 file changed

Lines changed: 3 additions & 12 deletions

File tree

browserstack/local.py

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -50,18 +50,9 @@ def start(self, **kwargs):
5050
time.sleep(1)
5151

5252
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
53+
if (hasattr(self, 'proc')):
54+
return True if self.proc.poll() is None else False
55+
return False
6556

6657
def __add_arg(self, key, value):
6758
if key == 'verbose' and value:

0 commit comments

Comments
 (0)