diff options
Diffstat (limited to 'libusb/sync.c')
-rw-r--r-- | libusb/sync.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libusb/sync.c b/libusb/sync.c index d040d98..f6dc2a7 100644 --- a/libusb/sync.c +++ b/libusb/sync.c @@ -102,13 +102,13 @@ int API_EXPORTED libusb_control_transfer(libusb_device_handle *dev_handle, } while (!completed) { - r = libusb_handle_events_check(HANDLE_CTX(dev_handle), &completed); + r = libusb_handle_events(HANDLE_CTX(dev_handle)); if (r < 0) { if (r == LIBUSB_ERROR_INTERRUPTED) continue; libusb_cancel_transfer(transfer); while (!completed) - if (libusb_handle_events_check(HANDLE_CTX(dev_handle), &completed) < 0) + if (libusb_handle_events(HANDLE_CTX(dev_handle)) < 0) break; libusb_free_transfer(transfer); return r; @@ -172,13 +172,13 @@ static int do_sync_bulk_transfer(struct libusb_device_handle *dev_handle, } while (!completed) { - r = libusb_handle_events_check(HANDLE_CTX(dev_handle), &completed); + r = libusb_handle_events(HANDLE_CTX(dev_handle)); if (r < 0) { if (r == LIBUSB_ERROR_INTERRUPTED) continue; libusb_cancel_transfer(transfer); while (!completed) - if (libusb_handle_events_check(HANDLE_CTX(dev_handle), &completed) < 0) + if (libusb_handle_events(HANDLE_CTX(dev_handle)) < 0) break; libusb_free_transfer(transfer); return r; |