miguelfreitas
2014-01-09 20:29:07 UTC
exit from sync_transfer_wait_for_completion when libusb_handle_events_completed failed
and libusb_cancel_transfer returns LIBUSB_ERROR_NOT_FOUND. this error is returned when
urbs is not found in kernel (it was already dequeued from async_completed list),
therefore there is nothing to cancel. if we don't break here libusbx will get stuck in
this loop forever. fix #76.
You can merge this Pull Request by running:
git pull https://github.com/miguelfreitas/libusbx issue_76
Or you can view, comment on it, or merge it online at:
https://github.com/libusbx/libusbx/pull/167
-- Commit Summary --
* exit from sync_transfer_wait_for_completion when libusb_handle_events_completed failed
-- File Changes --
M libusb/sync.c (8)
-- Patch Links --
https://github.com/libusbx/libusbx/pull/167.patch
https://github.com/libusbx/libusbx/pull/167.diff
---
Reply to this email directly or view it on GitHub:
https://github.com/libusbx/libusbx/pull/167
and libusb_cancel_transfer returns LIBUSB_ERROR_NOT_FOUND. this error is returned when
urbs is not found in kernel (it was already dequeued from async_completed list),
therefore there is nothing to cancel. if we don't break here libusbx will get stuck in
this loop forever. fix #76.
You can merge this Pull Request by running:
git pull https://github.com/miguelfreitas/libusbx issue_76
Or you can view, comment on it, or merge it online at:
https://github.com/libusbx/libusbx/pull/167
-- Commit Summary --
* exit from sync_transfer_wait_for_completion when libusb_handle_events_completed failed
-- File Changes --
M libusb/sync.c (8)
-- Patch Links --
https://github.com/libusbx/libusbx/pull/167.patch
https://github.com/libusbx/libusbx/pull/167.diff
---
Reply to this email directly or view it on GitHub:
https://github.com/libusbx/libusbx/pull/167