summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2018-05-19 04:34:03 +0200
committerGravatar Nikias Bassen2018-05-19 04:34:03 +0200
commit5e054e6294fc09e989a98b2336d15c9c9a0baa4c (patch)
tree17f79503a3c35cebf27f7765d8def3921d759bf7
parentb8b3035500eb2311aab366aaa3e5069ee422e8e3 (diff)
downloadidevicerestore-5e054e6294fc09e989a98b2336d15c9c9a0baa4c.tar.gz
idevicerestore-5e054e6294fc09e989a98b2336d15c9c9a0baa4c.tar.bz2
restore: Send ReceivedFinalStatusMsg when restore succeeds as restored is expecting it
This prevents a delay of about 10 seconds at the final stage of the restore process.
-rw-r--r--src/restore.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/restore.c b/src/restore.c
index 7cc2295..0e66a39 100644
--- a/src/restore.c
+++ b/src/restore.c
@@ -2383,6 +2383,10 @@ int restore_device(struct idevicerestore_client_t* client, plist_t build_identit
else if (!strcmp(type, "StatusMsg")) {
err = restore_handle_status_msg(restore, message);
if (restore_finished) {
+ plist_t dict = plist_new_dict();
+ plist_dict_set_item(dict, "MsgType", plist_new_string("ReceivedFinalStatusMsg"));
+ restored_send(restore, dict);
+ plist_free(dict);
client->flags |= FLAG_QUIT;
}
}