nyholku / purejavacomm

Pure Java implementation of JavaComm SerialPort
http://www.sparetimelabs.com/purejavacomm/index.html
BSD 3-Clause "New" or "Revised" License
362 stars 146 forks source link

Fixes #89: Better handling of concurrent close() #96

Closed bondolo closed 7 years ago

bondolo commented 7 years ago

InputStream.read() return -1 for concurrent close() of serial port. Throw IOException if closed rather than IllegalStateException

bondolo commented 7 years ago

Any further thoughts on this PR?

nyholku commented 7 years ago

This should be in the latest release 1.0.2 I did over the weekend.