Skip to content
This repository has been archived by the owner on Mar 2, 2021. It is now read-only.

Commit

Permalink
Fix --exit-recovery, improve message that gets printed
Browse files Browse the repository at this point in the history
  • Loading branch information
opa334 committed Feb 26, 2021
1 parent 242163f commit 57d0b1b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion futurerestore/futurerestore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,10 @@ void futurerestore::setAutoboot(bool val){
retassure(_didInit, "did not init\n");

retassure(getDeviceMode(false) == MODE_RECOVERY, "can't set auto-boot, when device isn't in recovery mode\n");
retassure(!_client->recovery && recovery_client_new(_client),"Could not connect to device in recovery mode.\n");
if(!_client->recovery)
{
retassure(!recovery_client_new(_client),"Could not connect to device in recovery mode.\n");
}
retassure(!recovery_set_autoboot(_client, val),"Setting auto-boot failed?!\n");
}

Expand Down
2 changes: 1 addition & 1 deletion futurerestore/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ int main_r(int argc, const char * argv[]) {
}else if (argc == optind && flags & FLAG_WAIT) {
info("User requested to only wait for ApNonce to match, but not for actually restoring\n");
}else if (exitRecovery){
info("Exiting to recovery mode\n");
info("Exiting from recovery mode to normal mode\n");
}else{
error("argument parsing failed! agrc=%d optind=%d\n",argc,optind);
if (idevicerestore_debug){
Expand Down

0 comments on commit 57d0b1b

Please sign in to comment.