mirror of
https://github.com/tihmstar/futurerestore.git
synced 2025-07-06 15:40:33 +00:00
Fix entering recovery mode finally
This commit is contained in:
parent
652724cd79
commit
83c1825078
|
@ -131,6 +131,8 @@ void futurerestore::putDeviceIntoRecovery(){
|
||||||
getDeviceMode(false);
|
getDeviceMode(false);
|
||||||
info("Found device in %s mode\n", _client->mode->string);
|
info("Found device in %s mode\n", _client->mode->string);
|
||||||
if (_client->mode->index == MODE_NORMAL){
|
if (_client->mode->index == MODE_NORMAL){
|
||||||
|
irecv_device_event_subscribe(&_client->irecv_e_ctx, irecv_event_cb, _client);
|
||||||
|
idevice_event_subscribe(idevice_event_cb, _client);
|
||||||
#ifdef HAVE_LIBIPATCHER
|
#ifdef HAVE_LIBIPATCHER
|
||||||
retassure(!_isPwnDfu, "isPwnDfu enabled, but device was found in normal mode\n");
|
retassure(!_isPwnDfu, "isPwnDfu enabled, but device was found in normal mode\n");
|
||||||
#endif
|
#endif
|
||||||
|
@ -151,7 +153,6 @@ void futurerestore::putDeviceIntoRecovery(){
|
||||||
}else{
|
}else{
|
||||||
reterror("unsupported device mode, please put device in recovery or normal mode\n");
|
reterror("unsupported device mode, please put device in recovery or normal mode\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
safeFree(_client->udid); //only needs to be freed manually when function did't throw exception
|
safeFree(_client->udid); //only needs to be freed manually when function did't throw exception
|
||||||
|
|
||||||
//these get also freed by destructor
|
//these get also freed by destructor
|
||||||
|
|
Loading…
Reference in a new issue