From: fhanik Date: Fri, 16 Mar 2007 19:56:05 +0000 (+0000) Subject: minor tweaks X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=d180f09455102f5c0364e31072b5bf006a151fc3;p=tomcat7.0 minor tweaks git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@519115 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/java/org/apache/tomcat/util/net/NioEndpoint.java b/java/org/apache/tomcat/util/net/NioEndpoint.java index f9890c8fa..48476ae1b 100644 --- a/java/org/apache/tomcat/util/net/NioEndpoint.java +++ b/java/org/apache/tomcat/util/net/NioEndpoint.java @@ -712,7 +712,7 @@ public class NioEndpoint { executor = new ThreadPoolExecutor(getMinSpareThreads(), getMaxThreads(), 60, TimeUnit.SECONDS,taskqueue, tf); taskqueue.setParent( (ThreadPoolExecutor) executor); } - } else { + } else if ( executor != null ) {//avoid two thread pools being created workers = new WorkerStack(maxThreads); } @@ -1898,7 +1898,7 @@ public class NioEndpoint { } public boolean offer(Runnable o) { - if ( parent != null && parent.getPoolSize()