Skip to content
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

Fixed missing InterruptedException management in waitBytesWithTimeout() #110

Closed
wants to merge 3 commits into from

Conversation

jbaptperez
Copy link

The waitBytesWithTimeout() method did not handle InterruptedExceptions.
As a result, a lot Thread.interrupt() attempts were consumed but not treated
while calling read with timeout methods.

This fix takes into account InterruptedExceptions and throws a
SerialPortException for each of them.

Jean-Baptiste Perez added 3 commits June 14, 2017 15:40
The waitBytesWithTimeout() method did not handle InterruptedExceptions.
As a result, a lot Thread.interrupt() attempts were consumed but not treated
while calling read with timeout methods.

This fix takes into account InterruptedExceptions and throws a
SerialPortException for each of them.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant