Safer shutdown

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

View File

@ -53,8 +53,11 @@ class OioChildEventLoop extends SingleThreadEventLoop {
}
}
if (isShutdown() && peekTask() == null) {
break;
if (isShutdown()) {
ch.unsafe().close(ch.unsafe().voidFuture());
if (peekTask() == null) {
break;
}
}
}
}