libusb: fix race condition on device close #189

Merged
Youw merged 1 commit from libusb-hang into master 2020-10-14 10:43:27 -05:00
Youw commented 2020-09-26 13:59:13 -05:00 (Migrated from github.com)

Read callback may fire itself on its own even after its been
requested to stop and exactly before the calling code
waits for its completion in indefinite loop.

Explicitly preventing re-fireing the submission loop,
fixes the issue.

Fixes: #142.

Signed-off-by: Ihor Dutchak ihor.youw@gmail.com

Read callback may fire itself on its own even after its been requested to stop and exactly before the calling code waits for its completion in indefinite loop. Explicitly preventing re-fireing the submission loop, fixes the issue. Fixes: #142. Signed-off-by: Ihor Dutchak <ihor.youw@gmail.com>
Sign in to join this conversation.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
gh-libusb/hidapi!189
No description provided.