summaryrefslogtreecommitdiffstats
path: root/src/recovery.c
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2019-09-26 04:36:39 +0200
committerGravatar Nikias Bassen2019-09-26 04:36:39 +0200
commita18ad835cb84268fa07118cf6abed01d1e93856a (patch)
tree92e9a9e40a9e7cbb29971087ad89d2735a92fafc /src/recovery.c
parent5c4680dcdcb751ab3d8185f2cf7dc5900037574d (diff)
downloadidevicerestore-a18ad835cb84268fa07118cf6abed01d1e93856a.tar.gz
idevicerestore-a18ad835cb84268fa07118cf6abed01d1e93856a.tar.bz2
Make sure CTRL+C is working at specific stages of the process
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 c079d90..4a1e819 100644
--- a/src/recovery.c
+++ b/src/recovery.c
@@ -233,7 +233,7 @@ int recovery_enter_restore(struct idevicerestore_client_t* client, plist_t build
debug("DEBUG: Waiting for device to disconnect...\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 place device in restore mode\n");
return -1;
}