From f91ea09c159af4d4e9e3cec33b397b44dc245d79 Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Sun, 26 Jun 2016 18:31:03 +0200 Subject: restore: Explicitly stop FDR thread to suppress error messages at the end of the restore --- src/restore.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/restore.c b/src/restore.c index 5c4a30b..4418660 100644 --- a/src/restore.c +++ b/src/restore.c @@ -2072,6 +2072,14 @@ int restore_device(struct idevicerestore_client_t* client, plist_t build_identit message = NULL; } + if (fdr_control_channel) { + fdr_disconnect(fdr_control_channel); + if (fdr_thread) { + thread_join(fdr_thread); + } + fdr_control_channel = NULL; + } + restore_client_free(client); return err; } -- cgit v1.1-32-gdbae