From a18ad835cb84268fa07118cf6abed01d1e93856a Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Thu, 26 Sep 2019 04:36:39 +0200 Subject: Make sure CTRL+C is working at specific stages of the process --- src/recovery.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/recovery.c') 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; } -- cgit v1.1-32-gdbae