Prefer discardSomeReadBytes()
This commit is contained in:
parent
5dbb799a92
commit
c9174e0733
@ -34,7 +34,7 @@ public abstract class ChannelInboundByteHandlerAdapter
|
|||||||
inboundBufferUpdated(ctx, in);
|
inboundBufferUpdated(ctx, in);
|
||||||
} finally {
|
} finally {
|
||||||
if (!in.readable()) {
|
if (!in.readable()) {
|
||||||
in.discardReadBytes();
|
in.unsafe().discardSomeReadBytes();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user