summaryrefslogtreecommitdiffstats
path: root/src/restore.c
diff options
context:
space:
mode:
authorGravatar Joshua Hill2010-06-21 03:47:54 -0400
committerGravatar Joshua Hill2010-06-21 03:59:31 -0400
commit930f4b350474435e011b9dca18424dd1c42ea353 (patch)
tree68b5631b4877710b9aa39e4aa68cbc538bf5d324 /src/restore.c
parent24afafe06f902bfd9f5652beb8797f24033c68bc (diff)
downloadidevicerestore-930f4b350474435e011b9dca18424dd1c42ea353.tar.gz
idevicerestore-930f4b350474435e011b9dca18424dd1c42ea353.tar.bz2
Finally fixed the out of control problem
Diffstat (limited to 'src/restore.c')
-rw-r--r--src/restore.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/restore.c b/src/restore.c
index b4cf0b2..bf4b62f 100644
--- a/src/restore.c
+++ b/src/restore.c
@@ -193,7 +193,7 @@ int restore_reboot(struct idevicerestore_client_t* client) {
}
}
- restore_error = restored_reboot(client);
+ restore_error = restored_reboot(client->restore->client);
if (restore_error != RESTORE_E_SUCCESS) {
error("ERROR: Unable to reboot the device from restore mode\n");
return -1;
@@ -590,7 +590,7 @@ int restore_device(struct idevicerestore_client_t* client, const char* uuid, con
restore_error = restored_start_restore(restore);
if (restore_error != RESTORE_E_SUCCESS) {
error("ERROR: Unable to start the restore process\n");
- restore_close(device, restore);
+ restore_client_free(client);
return -1;
}
@@ -652,6 +652,6 @@ int restore_device(struct idevicerestore_client_t* client, const char* uuid, con
message = NULL;
}
- restore_close(device, restore);
+ restore_client_free(client);
return 0;
}