Safer shutdown

This commit is contained in:
Trustin Lee 2012-05-30 04:05:10 -07:00
parent a53ecbf5f1
commit 65e224f149

View File

@ -124,8 +124,10 @@ final class NioChildEventLoop extends SingleThreadEventLoop {
if (isShutdown()) {
closeAll();
if (peekTask() == null) {
break;
}
}
} catch (Throwable t) {
logger.warn(
"Unexpected exception in the selector loop.", t);