Safer shutdown

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

View File

@ -124,7 +124,9 @@ final class NioChildEventLoop extends SingleThreadEventLoop {
if (isShutdown()) { if (isShutdown()) {
closeAll(); closeAll();
break; if (peekTask() == null) {
break;
}
} }
} catch (Throwable t) { } catch (Throwable t) {
logger.warn( logger.warn(