Fix exception destroying a stopped connector.
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Wed, 9 Mar 2011 18:49:02 +0000 (18:49 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Wed, 9 Mar 2011 18:49:02 +0000 (18:49 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1079930 13f79535-47bb-0310-9956-ffa450edef68

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

index 8c8383f..86170e3 100644 (file)
@@ -304,7 +304,7 @@ public class StandardService extends LifecycleMBeanBase implements Service {
             }
             if (j < 0)
                 return;
-            if (getState().isAvailable()) {
+            if (connectors[j].getState().isAvailable()) {
                 try {
                     connectors[j].stop();
                 } catch (LifecycleException e) {
index b41eccf..def51e5 100644 (file)
         <bug>50893</bug>: Add additional information to the download README for
         the extras components. (markt)
       </fix>
+      <fix>
+        Calling <code>stop()</code> and then <code>destroy()</code> on a
+        connector in correctly triggered an exception. (markt)
+      </fix>
     </changelog>
   </subsection>
   <subsection name="Coyote">