You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Each HidDevice instance creates an internal background thread to perform some work in the background. This thread may keep an application that uses PureJavaHidApi from exiting if the device is not closed before the application tries to exit.
And for the close() method:
This call may block indefinitely if the device stops sending reports. (Hopefully in the future the close method will not block under any circumstances).
So, how is the proper way to close() a device?
My preliminary tests show that the close() method is almost unusable if the device doesn't send reports on its own. Fortunately seems like the first warning about a thread preventing the app to exit is not preventing VM in our case.
The text was updated successfully, but these errors were encountered:
Javadocs for HidDevice say:
And for the close() method:
So, how is the proper way to close() a device?
My preliminary tests show that the close() method is almost unusable if the device doesn't send reports on its own. Fortunately seems like the first warning about a thread preventing the app to exit is not preventing VM in our case.
The text was updated successfully, but these errors were encountered: