Repository: mina Updated Branches: refs/heads/2.1.0 82d1d3a40 -> d72f89017
o Applied Guus's patch (DIRMINA-1088) o Fixed another small mistake with the maximumPoolSize check Project: http://git-wip-us.apache.org/repos/asf/mina/repo Commit: http://git-wip-us.apache.org/repos/asf/mina/commit/d72f8901 Tree: http://git-wip-us.apache.org/repos/asf/mina/tree/d72f8901 Diff: http://git-wip-us.apache.org/repos/asf/mina/diff/d72f8901 Branch: refs/heads/2.1.0 Commit: d72f89017ff7ff4fb94df92805c4a75ebb127523 Parents: 82d1d3a Author: Emmanuel Lécharny <[email protected]> Authored: Sun Jul 1 10:23:30 2018 +0200 Committer: Emmanuel Lécharny <[email protected]> Committed: Sun Jul 1 10:23:30 2018 +0200 ---------------------------------------------------------------------- .../apache/mina/filter/executor/OrderedThreadPoolExecutor.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/mina/blob/d72f8901/mina-core/src/main/java/org/apache/mina/filter/executor/OrderedThreadPoolExecutor.java ---------------------------------------------------------------------- diff --git a/mina-core/src/main/java/org/apache/mina/filter/executor/OrderedThreadPoolExecutor.java b/mina-core/src/main/java/org/apache/mina/filter/executor/OrderedThreadPoolExecutor.java index da8333d..3f27419 100644 --- a/mina-core/src/main/java/org/apache/mina/filter/executor/OrderedThreadPoolExecutor.java +++ b/mina-core/src/main/java/org/apache/mina/filter/executor/OrderedThreadPoolExecutor.java @@ -192,13 +192,13 @@ public class OrderedThreadPoolExecutor extends ThreadPoolExecutor { throw new IllegalArgumentException("corePoolSize: " + corePoolSize); } - if ((maximumPoolSize == 0) || (maximumPoolSize < corePoolSize)) { + if ((maximumPoolSize <= 0) || (maximumPoolSize < corePoolSize)) { throw new IllegalArgumentException("maximumPoolSize: " + maximumPoolSize); } // Now, we can setup the pool sizes - super.setCorePoolSize(corePoolSize); super.setMaximumPoolSize(maximumPoolSize); + super.setCorePoolSize(corePoolSize); // The queueHandler might be null. if (eventQueueHandler == null) {
