Prefer discardSomeReadBytes()

This commit is contained in:
Trustin Lee 2012-08-24 17:22:14 +09:00
parent 5dbb799a92
commit c9174e0733

View File

@ -34,7 +34,7 @@ public abstract class ChannelInboundByteHandlerAdapter
inboundBufferUpdated(ctx, in);
} finally {
if (!in.readable()) {
in.discardReadBytes();
in.unsafe().discardSomeReadBytes();
}
}
}