diff options
author | Martin Szulecki | 2010-07-14 04:08:54 +0200 |
---|---|---|
committer | Martin Szulecki | 2010-07-14 04:08:54 +0200 |
commit | 88e1348858aa8157930066e634b66f3f717be9b6 (patch) | |
tree | ef401decdbb31cf360347a265b1371e2a64d929a | |
parent | 61831ded8b7775244ddd32683181aebf60ab6807 (diff) | |
download | idevicerestore-88e1348858aa8157930066e634b66f3f717be9b6.tar.gz idevicerestore-88e1348858aa8157930066e634b66f3f717be9b6.tar.bz2 |
Extend sleep timeouts to allow the device to load
-rw-r--r-- | src/recovery.c | 7 |
1 files changed, 5 insertions, 2 deletions
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"); |