[#907] Prevent IllegalBufferAccessException which could be triggered if inboundBufferUpdated() was called once the channel was closed

This commit is contained in:
Norman Maurer 2013-01-17 20:41:08 +01:00
parent 677886f470
commit 16f729cd95

View File

@ -1065,7 +1065,9 @@ final class DefaultChannelHandlerContext extends DefaultAttributeMap implements
next.invokeInboundBufferUpdatedTask = task = new Runnable() {
@Override
public void run() {
next.invokeInboundBufferUpdated();
if (!next.isInboundBufferFreed()) {
next.invokeInboundBufferUpdated();
}
}
};
}