Skip to content

Commit

Permalink
[netty#972] Correctly mark the ChannelPipeline once a ChannelHandler …
Browse files Browse the repository at this point in the history
…was removed and because of this a buffer was freed
  • Loading branch information
Norman Maurer committed Jan 22, 2013
1 parent 54af70f commit 4ac3bac
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -626,13 +626,15 @@ public void run() {

private void freeHandlerBuffers(ChannelHandler handler, ChannelHandlerContext ctx) {
if (handler instanceof ChannelInboundHandler) {
inboundBufferFreed = true;
try {
((ChannelInboundHandler) handler).freeInboundBuffer(ctx);
} catch (Exception e) {
notifyHandlerException(e);
}
}
if (handler instanceof ChannelOutboundHandler) {
outboundBufferFreed = true;
try {
((ChannelOutboundHandler) handler).freeOutboundBuffer(ctx);
} catch (Exception e) {
Expand Down

0 comments on commit 4ac3bac

Please sign in to comment.