Prevent JVM crashes caused by shutting down the APR library too early.
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Tue, 27 Jul 2010 20:26:14 +0000 (20:26 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Tue, 27 Jul 2010 20:26:14 +0000 (20:26 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@979850 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/catalina/core/AprLifecycleListener.java

index a3158c2..02e37a3 100644 (file)
@@ -108,7 +108,7 @@ public class AprLifecycleListener
                     }
                 }
             }
-        } else if (Lifecycle.AFTER_STOP_EVENT.equals(event.getType())) {
+        } else if (Lifecycle.DESTROY_EVENT.equals(event.getType())) {
             synchronized (lock) {
                 if (!aprAvailable) {
                     return;