[#3368] Ensure ByteBuf is not release two times
Motivation: As the ByteBuf is not set to null after release it we may try to release it again in handleReadException() Modifications: - set ByteBuf to null to avoid another byteBuf.release() to be called in handleReadException() Result: No IllegalReferenceCountException anymore
This commit is contained in:
parent
d79e4ffe07
commit
97324454dd
@ -120,6 +120,7 @@ public abstract class AbstractNioByteChannel extends AbstractNioChannel {
|
||||
if (localReadAmount <= 0) {
|
||||
// not was read release the buffer
|
||||
byteBuf.release();
|
||||
byteBuf = null;
|
||||
close = localReadAmount < 0;
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user