public void stop ( ) { try { if ( this . socket != null ) { this . socket . close ( ) ; } } catch ( final IOException e1 ) { GPSdEndpoint . LOG . debug ( "Close forced: " + e1 . getMessage ( ) ) ; } this . listeners . clear ( ) ; if ( this . listenThread != null ) { this . listenThread . halt ( ) ; } this . listenThread = null ; }
Stops the endpoint .