/** * Remove this channel from the list of managed channels * * @param channel the channel */ @Override public void unregisterChannel(Channel channel) { int channelId = channel.getId(); Channel result = channels.remove(channelId); if (log.isDebugEnabled()) { log.debug("unregisterChannel({}) result={}", channel, result); } }
/** * Remove this channel from the list of managed channels * * @param channel the channel */ @Override public void unregisterChannel(Channel channel) { int channelId = channel.getId(); Channel result = channels.remove(channelId); if (log.isDebugEnabled()) { log.debug("unregisterChannel({}) result={}", channel, result); } }
Channel channel = getChannel(); if (!isOpen()) { throw new SshChannelClosedException(channel.getId(), "write(" + this + ") len=" + l + " - channel already closed");
Channel channel = getChannel(); if (!isOpen()) { throw new SshChannelClosedException(channel.getId(), "write(" + this + ") len=" + l + " - channel already closed");