diff options
-rw-r--r-- | src/idevicerestore.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/idevicerestore.c b/src/idevicerestore.c index b990995..72a9bd1 100644 --- a/src/idevicerestore.c +++ b/src/idevicerestore.c @@ -823,7 +823,7 @@ int check_mode(struct idevicerestore_client_t* client) { mode = MODE_NORMAL; } - else if (!client->ecid && client->udid && (restore_check_mode(client) == 0)) { + else if (restore_check_mode(client) == 0) { mode = MODE_RESTORE; } @@ -838,11 +838,9 @@ int check_device(struct idevicerestore_client_t* client) { switch (client->mode->index) { case MODE_RESTORE: - if (!client->ecid && client->udid) { - device = restore_check_device(client); - if (device < 0) { - device = DEVICE_UNKNOWN; - } + device = restore_check_device(client); + if (device < 0) { + device = DEVICE_UNKNOWN; } break; |