diff options
author | Martin Szulecki | 2012-07-17 17:34:32 +0200 |
---|---|---|
committer | Nikias Bassen | 2012-07-17 17:34:32 +0200 |
commit | 463868bf64d5aee17df4254dc5a21f81ebc59ff8 (patch) | |
tree | b459cf7eff16a8cacf50462ad51036dcc88f2968 /src/restore.c | |
parent | 89c630f0d75e65498bfd6268c715e8b1b92b793b (diff) | |
download | idevicerestore-463868bf64d5aee17df4254dc5a21f81ebc59ff8.tar.gz idevicerestore-463868bf64d5aee17df4254dc5a21f81ebc59ff8.tar.bz2 |
restore: Free client and wait 10 seconds for device to reboot from restore mode
Diffstat (limited to 'src/restore.c')
-rw-r--r-- | src/restore.c | 3 |
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; } |