public void terminate ( String reason ) throws XMPPException , NotConnectedException , InterruptedException { if ( isClosed ( ) ) return ; LOGGER . fine ( "Terminate " + reason ) ; Jingle jout = new Jingle ( JingleActionEnum . SESSION_TERMINATE ) ; jout . setType ( IQ . Type . set ) ; sendStanza ( jout ) ; triggerSessionClosed ( reason ) ; }
Terminates the session with a custom reason .