diff options
author | Rodrigo Arias | 2022-04-23 19:25:21 +0200 |
---|---|---|
committer | Nikias Bassen | 2022-04-25 00:43:23 +0200 |
commit | 51b33f44e7bb7a783cafec47510b9645eced6d63 (patch) | |
tree | dd1f6fbacd27992e3668b2f05a25a9f31ca24c39 /src | |
parent | 0b269e6ee66d3aafba14b3e48f27446086f09b64 (diff) | |
download | idevicerestore-51b33f44e7bb7a783cafec47510b9645eced6d63.tar.gz idevicerestore-51b33f44e7bb7a783cafec47510b9645eced6d63.tar.bz2 |
Increase recovery mode disconnect and re-connect timeout from 10 to 60 seconds
Diffstat (limited to 'src')
-rw-r--r-- | src/idevicerestore.c | 4 |
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)) { |