Fix potential NPE in AioEventLoop / Always notify flush futures
This commit is contained in:
parent
e7c6ca945f
commit
ee019d344e
@ -73,7 +73,7 @@ public class AioEventLoop extends MultithreadEventLoop {
|
|||||||
if (l.isShutdown()) {
|
if (l.isShutdown()) {
|
||||||
command.run();
|
command.run();
|
||||||
} else {
|
} else {
|
||||||
ch.eventLoop().execute(command);
|
l.execute(command);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -165,6 +165,7 @@ public class AioSocketChannel extends AbstractAioChannel implements SocketChanne
|
|||||||
@Override
|
@Override
|
||||||
protected void doFlushByteBuffer(ByteBuf buf) throws Exception {
|
protected void doFlushByteBuffer(ByteBuf buf) throws Exception {
|
||||||
if (!buf.readable()) {
|
if (!buf.readable()) {
|
||||||
|
notifyFlushFutures();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user