From 88e1348858aa8157930066e634b66f3f717be9b6 Mon Sep 17 00:00:00 2001 From: Martin Szulecki Date: Wed, 14 Jul 2010 04:08:54 +0200 Subject: Extend sleep timeouts to allow the device to load --- src/recovery.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/recovery.c') diff --git a/src/recovery.c b/src/recovery.c index 6a38343..3eec1a3 100644 --- a/src/recovery.c +++ b/src/recovery.c @@ -95,7 +95,7 @@ int recovery_open_with_timeout(struct idevicerestore_client_t* client) { return -1; } - sleep(2); + sleep(4); debug("Retrying connection...\n"); } @@ -132,7 +132,10 @@ int recovery_enter_restore(struct idevicerestore_client_t* client, plist_t build error("ERROR: Unable to send iBEC\n"); return -1; } - sleep(2); + + /* this must be long enough to allow the device to run the iBEC */ + /* FIXME: Probably better to detect if the device is back then */ + sleep(4); if (recovery_send_applelogo(client, build_identity) < 0) { error("ERROR: Unable to send AppleLogo\n"); -- cgit v1.1-32-gdbae