Fix a bug where ChannelBufferHolder.isEmpty() returns a wrong value
.. when it has a byte buffer
This commit is contained in:
parent
0fd824c3bb
commit
49bda34a5d
@ -184,7 +184,7 @@ public final class ChannelBufferHolder<E> {
|
|||||||
if (msgBuf != null) {
|
if (msgBuf != null) {
|
||||||
return msgBuf.isEmpty();
|
return msgBuf.isEmpty();
|
||||||
} else {
|
} else {
|
||||||
return byteBuf.readable();
|
return !byteBuf.readable();
|
||||||
}
|
}
|
||||||
case 1:
|
case 1:
|
||||||
case 2:
|
case 2:
|
||||||
|
Loading…
Reference in New Issue
Block a user