summaryrefslogtreecommitdiffstats
path: root/src/recovery.c
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2021-06-29 04:21:25 +0200
committerGravatar Nikias Bassen2021-06-29 04:21:25 +0200
commit8567650b1c2f44e2c53fb54b0e916ee3a0869add (patch)
treec9bc011956a7f7019796996bb72cd5f99673301b /src/recovery.c
parentb09706b48b00d00cfd61638d9e9b932484b29b79 (diff)
downloadidevicerestore-8567650b1c2f44e2c53fb54b0e916ee3a0869add.tar.gz
idevicerestore-8567650b1c2f44e2c53fb54b0e916ee3a0869add.tar.bz2
Make device mode specific code more consistent
Diffstat (limited to 'src/recovery.c')
-rw-r--r--src/recovery.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/recovery.c b/src/recovery.c
index 6048382..b6a6f51 100644
--- a/src/recovery.c
+++ b/src/recovery.c
@@ -220,7 +220,7 @@ int recovery_enter_restore(struct idevicerestore_client_t* client, plist_t build
debug("DEBUG: Waiting for device to disconnect...\n");
cond_wait_timeout(&client->device_event_cond, &client->device_event_mutex, 30000);
- if (client->mode == &idevicerestore_modes[MODE_RECOVERY] || (client->flags & FLAG_QUIT)) {
+ if (client->mode == MODE_RECOVERY || (client->flags & FLAG_QUIT)) {
mutex_unlock(&client->device_event_mutex);
error("ERROR: Failed to place device in restore mode\n");
return -1;