summaryrefslogtreecommitdiffstats
path: root/src/dfu.c
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2012-02-02 03:49:38 +0100
committerGravatar Nikias Bassen2012-02-02 03:49:38 +0100
commit78416a40c8d9b6e54c345959d0afdaa17e245472 (patch)
tree66b84d9e22b7b4c6e86639606e654d2f890094f9 /src/dfu.c
parent7375f8552d78ed501800fe0cbcfe2b03d069ad8b (diff)
downloadidevicerestore-78416a40c8d9b6e54c345959d0afdaa17e245472.tar.gz
idevicerestore-78416a40c8d9b6e54c345959d0afdaa17e245472.tar.bz2
recovery: merge recovery_open_with_timeout into recovery_client_new
Diffstat (limited to 'src/dfu.c')
-rw-r--r--src/dfu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dfu.c b/src/dfu.c
index 0b3ad51..60eeaf1 100644
--- a/src/dfu.c
+++ b/src/dfu.c
@@ -113,7 +113,7 @@ int dfu_enter_recovery(struct idevicerestore_client_t* client, plist_t build_ide
const char* component = "iBSS";
irecv_error_t dfu_error = IRECV_E_SUCCESS;
- if (recovery_open_with_timeout(client) < 0 || dfu->mode != kDfuMode) {
+ if (recovery_client_new(client) < 0 || dfu->mode != kDfuMode) {
error("ERROR: Unable to connect to DFU device\n");
if (dfu)
irecv_close(dfu);
@@ -136,7 +136,7 @@ int dfu_enter_recovery(struct idevicerestore_client_t* client, plist_t build_ide
client->dfu->client = NULL;
// Reconnect to device, but this time make sure we're not still in DFU mode
- if (recovery_open_with_timeout(client) < 0 || client->mode->index != kDfuMode) {
+ if (recovery_client_new(client) < 0 || client->mode->index != kDfuMode) {
error("ERROR: Unable to connect to recovery device\n");
if (client->dfu->client)
irecv_close(client->dfu->client);