Author: remy.maucherat(a)jboss.com
Date: 2011-10-12 11:26:42 -0400 (Wed, 12 Oct 2011)
New Revision: 1851
Modified:
trunk/java/org/apache/catalina/core/StandardService.java
Log:
- With delay connector startup, don't do any connector stop either.
Modified: trunk/java/org/apache/catalina/core/StandardService.java
===================================================================
--- trunk/java/org/apache/catalina/core/StandardService.java 2011-10-12 14:52:10 UTC (rev
1850)
+++ trunk/java/org/apache/catalina/core/StandardService.java 2011-10-12 15:26:42 UTC (rev
1851)
@@ -420,11 +420,13 @@
}
if (j < 0)
return;
- if (started && (connectors[j] instanceof Lifecycle)) {
- try {
- ((Lifecycle) connectors[j]).stop();
- } catch (LifecycleException e) {
- log.error("Connector.stop", e);
+ if (!DELAY_CONNECTOR_STARTUP) {
+ if (started && (connectors[j] instanceof Lifecycle)) {
+ try {
+ ((Lifecycle) connectors[j]).stop();
+ } catch (LifecycleException e) {
+ log.error("Connector.stop", e);
+ }
}
}
connectors[j].setContainer(null);