From d180f09455102f5c0364e31072b5bf006a151fc3 Mon Sep 17 00:00:00 2001 From: fhanik Date: Fri, 16 Mar 2007 19:56:05 +0000 Subject: [PATCH] minor tweaks git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@519115 13f79535-47bb-0310-9956-ffa450edef68 --- java/org/apache/tomcat/util/net/NioEndpoint.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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()