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()) {
|
||||
command.run();
|
||||
} else {
|
||||
ch.eventLoop().execute(command);
|
||||
l.execute(command);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -165,6 +165,7 @@ public class AioSocketChannel extends AbstractAioChannel implements SocketChanne
|
||||
@Override
|
||||
protected void doFlushByteBuffer(ByteBuf buf) throws Exception {
|
||||
if (!buf.readable()) {
|
||||
notifyFlushFutures();
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user