nyholku / purejavacomm

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

Add event or callback if the main runnable event loop fails #115

Closed swarwick closed 5 years ago

swarwick commented 5 years ago

In the package constructor PureJavaSerialPort(String name, int timeout) there is a runnable thread that performs the main read/write operations. If this thread ever fails there is no notification to the end user that is has failed. There should be a COMPLETE event or onCompleteNotifcation callback to let the end user know the main event loop has completed and to check for failures if this occurred at an unknown time vs an actual intended shutdown.

swarwick commented 5 years ago

I just noticed this is a duplicate of issue #108