openlcb / OpenLCB_Java

A git-managed copy of the SVN-based Java prototype implementation of OpenLCB. This implementation operates inside JMRI.
6 stars 9 forks source link

Hub dispose - interrupt ServerSocket #230

Closed icklesteve closed 10 months ago

icklesteve commented 1 year ago

Currently when calling hub dispose, the ServerSocket does not unbind from the connection.

If a 2nd Hub instance is started following the dispose of a 1st instance, the connection is refused, java.net.BindException: Address already in use: NET_Bind

This PR corrects this, enabling a 2nd instance to operate correctly following disposal of a 1st instance.