[761] Fix possible NPE in cleanupWriteBuffer() when closing Channel
This commit is contained in:
parent
6f589dd12b
commit
26943f189c
@ -770,8 +770,10 @@ abstract class AbstractNioWorker implements Worker, ExternalResourceReleasable {
|
||||
}
|
||||
|
||||
ChannelFuture future = evt.getFuture();
|
||||
channel.currentWriteBuffer.release();
|
||||
channel.currentWriteBuffer = null;
|
||||
if (channel.currentWriteBuffer != null) {
|
||||
channel.currentWriteBuffer.release();
|
||||
channel.currentWriteBuffer = null;
|
||||
}
|
||||
channel.currentWriteEvent = null;
|
||||
// Mark the event object for garbage collection.
|
||||
//noinspection UnusedAssignment
|
||||
|
Loading…
x
Reference in New Issue
Block a user