diff options
author | Nikias Bassen | 2019-09-26 04:36:39 +0200 |
---|---|---|
committer | Nikias Bassen | 2019-09-26 04:36:39 +0200 |
commit | a18ad835cb84268fa07118cf6abed01d1e93856a (patch) | |
tree | 92e9a9e40a9e7cbb29971087ad89d2735a92fafc /src/normal.c | |
parent | 5c4680dcdcb751ab3d8185f2cf7dc5900037574d (diff) | |
download | idevicerestore-a18ad835cb84268fa07118cf6abed01d1e93856a.tar.gz idevicerestore-a18ad835cb84268fa07118cf6abed01d1e93856a.tar.bz2 |
Make sure CTRL+C is working at specific stages of the process
Diffstat (limited to 'src/normal.c')
-rw-r--r-- | src/normal.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/normal.c b/src/normal.c index 58d907c..14fa0f6 100644 --- a/src/normal.c +++ b/src/normal.c @@ -239,14 +239,14 @@ int normal_enter_recovery(struct idevicerestore_client_t* client) debug("DEBUG: Waiting for device to disconnect...\n"); WAIT_FOR(client->mode != &idevicerestore_modes[MODE_NORMAL] || (client->flags & FLAG_QUIT), 30); - if (client->mode == &idevicerestore_modes[MODE_NORMAL]) { + if (client->mode == &idevicerestore_modes[MODE_NORMAL] || (client->flags & FLAG_QUIT)) { error("ERROR: Failed to place device in recovery mode\n"); return -1; } debug("DEBUG: Waiting for device to connect in recovery mode...\n"); WAIT_FOR(client->mode == &idevicerestore_modes[MODE_RECOVERY] || (client->flags & FLAG_QUIT), 30); - if (client->mode != &idevicerestore_modes[MODE_RECOVERY]) { + if (client->mode != &idevicerestore_modes[MODE_RECOVERY] || (client->flags & FLAG_QUIT)) { error("ERROR: Failed to enter recovery mode\n"); return -1; } |