Fix an assertion error introduced by 0bc93dda08

Motivation:
    
Commit 0bc93dda08 introduced an assertion
failure.

Modifications:

Fix the assertion error.

Result:

Regression removed
This commit is contained in:
Trustin Lee 2016-04-08 17:23:32 +09:00
parent 84e281ced9
commit c1a3cc32e7

View File

@ -176,7 +176,9 @@ public abstract class AbstractNioChannel extends AbstractChannel {
}
} else {
// Best effort if we are not registered yet clear readPending. This happens during channel initialization.
clearReadPending0();
// NB: We only set the boolean field instead of calling clearReadPending0(), because the SelectionKey is
// not set yet so it would produce an assertion failure.
            readPending = false;
}
}