Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=51467
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Mon, 4 Jul 2011 12:50:24 +0000 (12:50 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Mon, 4 Jul 2011 12:50:24 +0000 (12:50 +0000)
start() not run()
Patch provided by Felix Schumacher

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1142643 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/catalina/core/StandardContext.java
webapps/docs/changelog.xml

index b285820..41f0617 100644 (file)
@@ -5478,7 +5478,7 @@ public class StandardContext extends ContainerBase
             
             Thread t = new Thread(stop);
             t.setName("stop children - " + getObjectName().toString());
-            t.run();
+            t.start();
             try {
                 t.join();
             } catch (InterruptedException e) {
index 8ffd9a7..1aba284 100644 (file)
         <bug>51466</bug>: Correct comment typos in HostManagerServlet. Patch
         provided by Felix Schumacher. (markt)
       </fix>
+      <fix>
+        <bug>51467</bug>: Invoke Thread.start() rather than Thread.run() so that
+        listeners and filters are stopped in a separate thread rather than the
+        current thread. Patch provided by Felix Schumacher. (markt)  
+      </fix>
     </changelog>
   </subsection>
   <subsection name="Other">