From 9278b29ea486dc0a985b5b2521cc16769432aa63 Mon Sep 17 00:00:00 2001 From: Trustin Lee Date: Thu, 17 Oct 2013 21:22:09 +0900 Subject: [PATCH] Fix a bug where the warning message is logged in wrong occasion. --- .../org/jboss/netty/channel/socket/nio/AbstractNioBossPool.java | 2 +- .../jboss/netty/channel/socket/nio/AbstractNioWorkerPool.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/jboss/netty/channel/socket/nio/AbstractNioBossPool.java b/src/main/java/org/jboss/netty/channel/socket/nio/AbstractNioBossPool.java index cb9dbe8b10..90bdc2c591 100644 --- a/src/main/java/org/jboss/netty/channel/socket/nio/AbstractNioBossPool.java +++ b/src/main/java/org/jboss/netty/channel/socket/nio/AbstractNioBossPool.java @@ -105,7 +105,7 @@ public abstract class AbstractNioBossPool } } - if (!warn) { + if (warn) { logger.warn( "Failed to get all boss threads ready within " + INITIALIZATION_TIMEOUT + " second(s). " + "Make sure to specify the executor which has more threads than the requested bossCount. " + diff --git a/src/main/java/org/jboss/netty/channel/socket/nio/AbstractNioWorkerPool.java b/src/main/java/org/jboss/netty/channel/socket/nio/AbstractNioWorkerPool.java index 15f1a81235..6b6f0e1fa5 100644 --- a/src/main/java/org/jboss/netty/channel/socket/nio/AbstractNioWorkerPool.java +++ b/src/main/java/org/jboss/netty/channel/socket/nio/AbstractNioWorkerPool.java @@ -106,7 +106,7 @@ public abstract class AbstractNioWorkerPool } } - if (!warn) { + if (warn) { logger.warn( "Failed to get all worker threads ready within " + INITIALIZATION_TIMEOUT + " second(s). " + "Make sure to specify the executor which has more threads than the requested workerCount. " +