tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r1441416 - /tomcat/trunk/java/org/apache/catalina/core/StandardContext.java
Date Fri, 01 Feb 2013 12:10:22 GMT
Author: markt
Date: Fri Feb  1 12:10:22 2013
New Revision: 1441416

URL: http://svn.apache.org/viewvc?rev=1441416&view=rev
Log:
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=54507
Don't run background processing if the context isn't started.

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

Modified: tomcat/trunk/java/org/apache/catalina/core/StandardContext.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/core/StandardContext.java?rev=1441416&r1=1441415&r2=1441416&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/core/StandardContext.java (original)
+++ tomcat/trunk/java/org/apache/catalina/core/StandardContext.java Fri Feb  1 12:10:22 2013
@@ -5453,6 +5453,10 @@ public class StandardContext extends Con
 
     @Override
     public void backgroundProcess() {
+
+        if (!getState().isAvailable())
+            return;
+
         Loader loader = getLoader();
         if (loader != null) {
             try {



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message