Don't release messages before throw UnsupportedOperationException, as the caller method will take care

This commit is contained in:
Norman Maurer 2013-06-14 06:41:27 +02:00
parent a5871dfd86
commit 4bf5003f76

View File

@ -15,7 +15,6 @@
*/
package io.netty.channel.socket.oio;
import io.netty.buffer.ByteBufUtil;
import io.netty.channel.ChannelException;
import io.netty.channel.ChannelMetadata;
import io.netty.channel.MessageList;
@ -185,10 +184,6 @@ public class OioServerSocketChannel extends AbstractOioMessageChannel
@Override
protected int doWrite(MessageList<Object> msgs, int index) throws Exception {
int size = msgs.size();
for (int i = index; i < size; i ++) {
ByteBufUtil.release(msgs.get(i));
}
throw new UnsupportedOperationException();
}