summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/restore.c8
1 files changed, 8 insertions, 0 deletions
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;
}