Fix a bug where ChannelBufferHolder.isEmpty() returns a wrong value

.. when it has a byte buffer
This commit is contained in:
Trustin Lee 2012-05-31 09:14:39 -07:00
parent 0fd824c3bb
commit 49bda34a5d

View File

@ -184,7 +184,7 @@ public final class ChannelBufferHolder<E> {
if (msgBuf != null) {
return msgBuf.isEmpty();
} else {
return byteBuf.readable();
return !byteBuf.readable();
}
case 1:
case 2: