Fix incorrect assert in Http2MultiplexCodec caused by 9f9aa1a.

Motivation:

9f9aa1a did some changes related to fixing how we handle ctx.read() in child channel but did incorrectly change some assert.

Modifications:

Fix assert to be correct.

Result:

Code does not throw an AssertionError due incorrect assert check.
This commit is contained in:
Norman Maurer 2018-12-07 19:46:38 +01:00
parent 0cc13cb0d4
commit 1881b8c781

View File

@ -805,7 +805,7 @@ public class Http2MultiplexCodec extends Http2FrameCodec {
void fireChildReadComplete() {
assert eventLoop().inEventLoop();
assert readStatus == ReadStatus.IN_PROGRESS;
assert readStatus != ReadStatus.IDLE;
unsafe.notifyReadComplete(unsafe.recvBufAllocHandle());
}