summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/libirecovery.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/libirecovery.c b/src/libirecovery.c
index 33711c2..3b12dd5 100644
--- a/src/libirecovery.c
+++ b/src/libirecovery.c
@@ -1404,6 +1404,11 @@ IRECV_API irecv_error_t irecv_reset(irecv_client_t client) {
1404 debug("error sending device reset: %#x\n", result); 1404 debug("error sending device reset: %#x\n", result);
1405 return IRECV_E_UNKNOWN_ERROR; 1405 return IRECV_E_UNKNOWN_ERROR;
1406 } 1406 }
1407
1408 result = (*client->handle)->USBDeviceReEnumerate(client->handle, 0);
1409 if (result != kIOReturnSuccess && result != kIOReturnNotResponding) {
1410 debug("error re-enumerating device: %#x (ignored)\n", result);
1411 }
1407#else 1412#else
1408 libusb_reset_device(client->handle); 1413 libusb_reset_device(client->handle);
1409#endif 1414#endif