From 51b33f44e7bb7a783cafec47510b9645eced6d63 Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Date: Sat, 23 Apr 2022 19:25:21 +0200 Subject: Increase recovery mode disconnect and re-connect timeout from 10 to 60 seconds --- src/idevicerestore.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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)) { -- cgit v1.1-32-gdbae