Skip to content

Commit

Permalink
Add DESTROYED state (if DESTROYED we are already STOPPED).
Browse files Browse the repository at this point in the history
  • Loading branch information
jfclere committed Jul 28, 2023
1 parent 5cd6da7 commit 77570dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion java/org/apache/catalina/util/LifecycleBase.java
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ public final synchronized void start() throws LifecycleException {
public final synchronized void stop() throws LifecycleException {

if (LifecycleState.STOPPING_PREP.equals(state) || LifecycleState.STOPPING.equals(state) ||
LifecycleState.STOPPED.equals(state)) {
LifecycleState.STOPPED.equals(state) || LifecycleState.DESTROYED.equals(state)) {

if (log.isDebugEnabled()) {
Exception e = new LifecycleException();
Expand Down

0 comments on commit 77570dd

Please sign in to comment.