Fix incorrect assert in Http2MultiplexCodec caused by 9f9aa1a. (#8639)

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 21:00:47 +01:00 committed by GitHub
parent 36c12a4c55
commit bdcad8ef47
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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