Fix NPE in OioChildEventLoop

This commit is contained in:
Trustin Lee 2012-05-31 01:19:54 -07:00
parent 131eef2c51
commit 32c982b478

View File

@ -54,7 +54,9 @@ class OioChildEventLoop extends SingleThreadEventLoop {
}
if (isShutdown()) {
ch.unsafe().close(ch.unsafe().voidFuture());
if (ch != null) {
ch.unsafe().close(ch.unsafe().voidFuture());
}
if (peekTask() == null) {
break;
}