summaryrefslogtreecommitdiffstats
path: root/src/restore.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/restore.c')
-rw-r--r--src/restore.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/restore.c b/src/restore.c
index b2436bb..51000b1 100644
--- a/src/restore.c
+++ b/src/restore.c
@@ -227,7 +227,10 @@ int restore_reboot(struct idevicerestore_client_t* client) {
restored_reboot(client->restore->client);
+ restored_client_free(client->restore->client);
+
// FIXME: wait for device disconnect here
+ sleep(10);
return 0;
}