forked from LudovicRousseau/PCSC
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure cleanup on hotplug_libusb shutdown
Make sure the hotplug_libusb cleanup code is executed on all exit branches from the thread. Before the commit, it was possible that the cleanup code in HPRescanUsbBus() would be skipped if the caller (HPEstablishUSBNotifications()) decides to exit on its own. Also libusb_exit() was skipped in some branches. The commit moves the cleanup code to the end of HPEstablishUSBNotifications() and removes pthread_exit() from HPRescanUsbBus(), so that cleanup isn't skipped.
- Loading branch information
1 parent
e50c01e
commit 1f21b5c
Showing
1 changed file
with
23 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters