-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bugfix/handle hidapi exceptions in sendReport #55
Conversation
Thanks for the pull request, i added some remarks :) |
Hey @flok - sorry, I am not seeing the remarks. Where can I find them? |
Btw, this fixes #48. |
You should see them in this thread at the top as a review from me |
You are right, my bad. Mostly working with gitlab now a days and forgot to press the button. You should be able to see it now |
No worries! I did respond to your review. Can you let me know if that is satisfactory? Thank you. |
Handle an exception generated by hidapi in the
sendReport
thread. This exception is thrown when no controller is connected. Since the exception is not handled, the thread ends, and the service needs to be restarted to recover. By handling these exceptions, the service becomes fault tolerant and is able to recover automatically.Connected
property to indicate when the device is not connected.