Fix sky_tool start/listen on iOS
This commit is contained in:
parent
82e8e3f079
commit
cb6b303996
@ -603,9 +603,8 @@ class IOSDevice(object):
|
||||
'1'
|
||||
]
|
||||
logging.info(' '.join(cmd))
|
||||
out = subprocess.check_output(cmd)
|
||||
match = re.search(r'\[\.\.\.\.\] Found [^\)]*\) connected', out)
|
||||
cls._is_connected = match is not None
|
||||
subprocess.check_output(cmd)
|
||||
cls._is_connected = True
|
||||
except subprocess.CalledProcessError:
|
||||
cls._is_connected = False
|
||||
return cls._is_connected
|
||||
@ -1030,6 +1029,8 @@ class StartListening(object):
|
||||
while True:
|
||||
logging.info('Updating running Sky apps...')
|
||||
|
||||
device = AndroidDevice()
|
||||
if device.is_connected():
|
||||
# Restart the app on Android. Android does not currently restart using skyx files.
|
||||
cmd = [
|
||||
sys.executable,
|
||||
|
Loading…
x
Reference in New Issue
Block a user