svn commit: r1846133 - /tomcat/trunk/java/org/apache/catalina/core/ContainerBase.java

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r1846133 - /tomcat/trunk/java/org/apache/catalina/core/ContainerBase.java

Rémy Maucherat
Author: remm
Date: Thu Nov  8 11:56:15 2018
New Revision: 1846133

URL: http://svn.apache.org/viewvc?rev=1846133&view=rev
Log:
Fix issue with contexts and start_prep, as is done in addChildInternal.

Modified:
    tomcat/trunk/java/org/apache/catalina/core/ContainerBase.java

Modified: tomcat/trunk/java/org/apache/catalina/core/ContainerBase.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/core/ContainerBase.java?rev=1846133&r1=1846132&r2=1846133&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/core/ContainerBase.java (original)
+++ tomcat/trunk/java/org/apache/catalina/core/ContainerBase.java Thu Nov  8 11:56:15 2018
@@ -1267,7 +1267,8 @@ public abstract class ContainerBase exte
      * session timeouts.
      */
     protected void threadStart() {
-        if (backgroundProcessorDelay > 0 && getState().isAvailable()
+        if (backgroundProcessorDelay > 0
+                && (getState().isAvailable() || LifecycleState.STARTING_PREP.equals(getState()))
                 && (backgroundProcessorFuture == null || backgroundProcessorFuture.isDone())) {
             if (backgroundProcessorFuture != null && backgroundProcessorFuture.isDone()) {
                 // There was an error executing the scheduled task, get it and log it



---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]