summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Rodrigo Arias2022-04-23 19:25:21 +0200
committerGravatar Nikias Bassen2022-04-25 00:43:23 +0200
commit51b33f44e7bb7a783cafec47510b9645eced6d63 (patch)
treedd1f6fbacd27992e3668b2f05a25a9f31ca24c39
parent0b269e6ee66d3aafba14b3e48f27446086f09b64 (diff)
downloadidevicerestore-51b33f44e7bb7a783cafec47510b9645eced6d63.tar.gz
idevicerestore-51b33f44e7bb7a783cafec47510b9645eced6d63.tar.bz2
Increase recovery mode disconnect and re-connect timeout from 10 to 60 seconds
-rw-r--r--src/idevicerestore.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/idevicerestore.c b/src/idevicerestore.c
index 841296f..b0572ca 100644
--- a/src/idevicerestore.c
+++ b/src/idevicerestore.c
@@ -1266,7 +1266,7 @@ int idevicerestore_start(struct idevicerestore_client_t* client)
recovery_client_free(client);
debug("Waiting for device to disconnect...\n");
- cond_wait_timeout(&client->device_event_cond, &client->device_event_mutex, 10000);
+ cond_wait_timeout(&client->device_event_cond, &client->device_event_mutex, 60000);
if (client->mode != MODE_UNKNOWN || (client->flags & FLAG_QUIT)) {
mutex_unlock(&client->device_event_mutex);
@@ -1278,7 +1278,7 @@ int idevicerestore_start(struct idevicerestore_client_t* client)
return -2;
}
debug("Waiting for device to reconnect in recovery mode...\n");
- cond_wait_timeout(&client->device_event_cond, &client->device_event_mutex, 10000);
+ cond_wait_timeout(&client->device_event_cond, &client->device_event_mutex, 60000);
if (client->mode != MODE_RECOVERY || (client->flags & FLAG_QUIT)) {
mutex_unlock(&client->device_event_mutex);
if (!(client->flags & FLAG_QUIT)) {