This is an automated email from the ASF dual-hosted git repository.

markt pushed a commit to branch 8.5.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git

commit fb6a26893eb1bf2260d166f36771202c79b135a5
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Thu Feb 8 18:54:18 2024 +0000

    Re-order so library isn't reported as running after it is terminated
---
 java/org/apache/catalina/core/AprLifecycleListener.java | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/java/org/apache/catalina/core/AprLifecycleListener.java 
b/java/org/apache/catalina/core/AprLifecycleListener.java
index e510d0bdad..28bdee051b 100644
--- a/java/org/apache/catalina/core/AprLifecycleListener.java
+++ b/java/org/apache/catalina/core/AprLifecycleListener.java
@@ -176,11 +176,11 @@ public class AprLifecycleListener implements 
LifecycleListener {
 
     private static void terminateAPR() {
         Library.terminatePrepare();
-        Library.terminate();
-        aprAvailable = false;
         aprInitialized = false;
-        sslInitialized = false; // Well we cleaned the pool in terminate.
+        aprAvailable = false;
         fipsModeActive = false;
+        sslInitialized = false; // Well we cleaned the pool in terminate.
+        Library.terminate();
     }
 
     @SuppressWarnings("deprecation")


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to