Fix NPE in OioChildEventLoop
This commit is contained in:
parent
131eef2c51
commit
32c982b478
@ -54,7 +54,9 @@ class OioChildEventLoop extends SingleThreadEventLoop {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (isShutdown()) {
|
if (isShutdown()) {
|
||||||
ch.unsafe().close(ch.unsafe().voidFuture());
|
if (ch != null) {
|
||||||
|
ch.unsafe().close(ch.unsafe().voidFuture());
|
||||||
|
}
|
||||||
if (peekTask() == null) {
|
if (peekTask() == null) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user