Fix UnsupportedOperationException

This commit is contained in:
Trustin Lee 2012-05-31 09:11:07 -07:00
parent 633fada6ec
commit 0fd824c3bb

View File

@ -742,7 +742,7 @@ public class DefaultChannelPipeline implements ChannelPipeline {
notifyHandlerException(t);
} finally {
ChannelBufferHolder<Object> inbound = ctx.inbound();
if (inbound.isEmpty() && inbound.hasByteBuffer()) {
if (!inbound.isBypass() && inbound.isEmpty() && inbound.hasByteBuffer()) {
inbound.byteBuffer().discardReadBytes();
}
}