summaryrefslogtreecommitdiffstats
path: root/src/restore.c
diff options
context:
space:
mode:
authorGravatar Joshua Hill2010-06-08 20:34:28 -0400
committerGravatar Joshua Hill2010-06-08 20:34:28 -0400
commit59fdd010aa845557b0eb90b98959c0cd112b638c (patch)
tree718aacfe3747db6c1e3141ae9261992bc603dd48 /src/restore.c
parentebc6622cec840d5a7310e27864773ee600034bd4 (diff)
downloadidevicerestore-59fdd010aa845557b0eb90b98959c0cd112b638c.tar.gz
idevicerestore-59fdd010aa845557b0eb90b98959c0cd112b638c.tar.bz2
started to add support multiple build identities
Diffstat (limited to 'src/restore.c')
-rw-r--r--src/restore.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/restore.c b/src/restore.c
index fc22b75..fa2ccdd 100644
--- a/src/restore.c
+++ b/src/restore.c
@@ -144,6 +144,7 @@ void restore_device_callback(const idevice_event_t* event, void* user_data) {
} else if (event->event == IDEVICE_DEVICE_REMOVE) {
restore_device_connected = 0;
+ idevicerestore_quit = 1;
}
}
@@ -498,7 +499,11 @@ int restore_handle_data_request_msg(idevice_t device, restored_client_t restore,
}
else if (!strcmp(type, "NORData")) {
- restore_send_nor(restore, ipsw, tss);
+ if(!idevicerestore_exclude) {
+ restore_send_nor(restore, ipsw, tss);
+ } else {
+ idevicerestore_quit = 1;
+ }
} else {
// Unknown DataType!!