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: [email protected]
For additional commands, e-mail: [email protected]