Safer shutdown

This commit is contained in:
Trustin Lee 2012-05-30 04:06:15 -07:00
parent 65e224f149
commit 243f6581c6

View File

@ -53,11 +53,14 @@ class OioChildEventLoop extends SingleThreadEventLoop {
}
}
if (isShutdown() && peekTask() == null) {
if (isShutdown()) {
ch.unsafe().close(ch.unsafe().voidFuture());
if (peekTask() == null) {
break;
}
}
}
}
@Override
protected void wakeup(boolean inEventLoop) {