[#1136] Fix possible IllegalBufferAccessException when remove itself from the pipeline
This commit is contained in:
parent
7b4c83b462
commit
fcd6becad9
@ -949,6 +949,7 @@ final class DefaultChannelHandlerContext extends DefaultAttributeMap implements
|
||||
} catch (Throwable t) {
|
||||
notifyHandlerException(t);
|
||||
} finally {
|
||||
if (!freed) {
|
||||
if (handler instanceof ChannelInboundByteHandler && !pipeline.isInboundShutdown()) {
|
||||
try {
|
||||
((ChannelInboundByteHandler) handler).discardInboundReadBytes(this);
|
||||
@ -959,6 +960,7 @@ final class DefaultChannelHandlerContext extends DefaultAttributeMap implements
|
||||
freeHandlerBuffersAfterRemoval();
|
||||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
try {
|
||||
handler.inboundBufferUpdated(this);
|
||||
|
Loading…
Reference in New Issue
Block a user