diff options
| -rw-r--r-- | src/libirecovery.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libirecovery.c b/src/libirecovery.c index ca96181..681b641 100644 --- a/src/libirecovery.c +++ b/src/libirecovery.c @@ -2705,9 +2705,9 @@ static void* _irecv_handle_device_add(void *userdata) } if (product_id == KIS_PRODUCT_ID) { - IOObjectRetain(device); int i = 0; for (i = 0; i < 10; i++) { + IOObjectRetain(device); error = iokit_usb_open_service(&client, device); if (error == IRECV_E_SUCCESS) { break; |
