Fix UnsupportedOperationException
This commit is contained in:
parent
633fada6ec
commit
0fd824c3bb
@ -742,7 +742,7 @@ public class DefaultChannelPipeline implements ChannelPipeline {
|
|||||||
notifyHandlerException(t);
|
notifyHandlerException(t);
|
||||||
} finally {
|
} finally {
|
||||||
ChannelBufferHolder<Object> inbound = ctx.inbound();
|
ChannelBufferHolder<Object> inbound = ctx.inbound();
|
||||||
if (inbound.isEmpty() && inbound.hasByteBuffer()) {
|
if (!inbound.isBypass() && inbound.isEmpty() && inbound.hasByteBuffer()) {
|
||||||
inbound.byteBuffer().discardReadBytes();
|
inbound.byteBuffer().discardReadBytes();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user