summaryrefslogtreecommitdiff
path: root/scripts/Util.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/Util.py')
-rw-r--r--scripts/Util.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/scripts/Util.py b/scripts/Util.py
index 58875f475e2..d3404bfdd0c 100644
--- a/scripts/Util.py
+++ b/scripts/Util.py
@@ -2260,6 +2260,14 @@ class RemoteProcessController(ProcessController):
if ident in self.processControllerProxies:
return self.processControllerProxies[ident]
+ # If the controller isn't up after 30s, we restart it. With the iOS simulator,
+ # it's not uncommon to get Springoard crashes when starting the controller.
+ if nRetry == 6:
+ sys.stdout.write("controller application unreachable, restarting... ")
+ sys.stdout.flush()
+ self.restartControllerApp(current, ident)
+ print("ok")
+
raise RuntimeError("couldn't reach the remote controller `{0}'".format(ident))
def setProcessController(self, proxy):