diff options
author | Nikias Bassen | 2012-02-02 03:49:38 +0100 |
---|---|---|
committer | Nikias Bassen | 2012-02-02 03:49:38 +0100 |
commit | 78416a40c8d9b6e54c345959d0afdaa17e245472 (patch) | |
tree | 66b84d9e22b7b4c6e86639606e654d2f890094f9 /src/dfu.c | |
parent | 7375f8552d78ed501800fe0cbcfe2b03d069ad8b (diff) | |
download | idevicerestore-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |