private void reopenSession ( ) { if ( ! closing && getStatus ( ) . isConnected ( ) ) { closing = true ; if ( getStatus ( ) . isAlive ( ) ) { setStatus ( ConnectionStatus . NOT_CONNECTED ) ; } closing = false ; } }
When connect has exception and the session still not out of time . Reopen the session to server .