Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=50358
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Mon, 29 Nov 2010 13:41:07 +0000 (13:41 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Mon, 29 Nov 2010 13:41:07 +0000 (13:41 +0000)
Set correct state when stopping

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

java/org/apache/catalina/startup/Embedded.java
webapps/docs/changelog.xml

index e957e9f..6b7620f 100644 (file)
@@ -845,7 +845,7 @@ public class Embedded  extends StandardService {
             log.debug("Stopping embedded server");
 
         fireLifecycleEvent(STOP_EVENT, null);
-        setState(LifecycleState.STARTING);
+        setState(LifecycleState.STOPPING);
 
         // Stop our defined Connectors first
         for (int i = 0; i < connectors.length; i++) {
index dbbe446..8cd6c59 100644 (file)
         Further performance improvements to session ID generation. Remove legacy
         configuration options that are no longer required.
       </update>
+      <fix>
+        <bug>50358</bug>: Set the correct LifecycleState when stopping instances
+        of the deprecated Embedded class. (markt) 
+      </fix>
     </changelog>
   </subsection>
   <subsection name="Coyote">