closed = true;
}
} else if (channel instanceof MultipointReadableMessageChannel) {
ByteBuffer nioBuf = buf.toByteBuffer();
try {
MultipointReadResult res = ((MultipointReadableMessageChannel) channel).receive(nioBuf);
if (res != null) {
buf = ChannelBuffers.wrappedBuffer(nioBuf);
remoteAddress = (SocketAddress) res.getSourceAddress();
}
} catch (IOException e) {
exception = e;
closed = true;
}