/** * Returns if there already is an open session on this connection. * @return true if it is so. */ public synchronized boolean isSessionOpen() { return currentSession != null && currentSession.isConnected() && !currentSession.isEOF(); }
/** * Returns if there already is an open session on this connection. * * @return true if it is so. */ @Override public synchronized boolean isSessionOpen() { return currentSession != null && currentSession.isConnected() && !currentSession.isEOF(); }
} while (!channel.isEOF() && commandTimeout > 0);