When shutting down, to so immediately
authorfhanik <fhanik@13f79535-47bb-0310-9956-ffa450edef68>
Tue, 7 Jul 2009 17:08:31 +0000 (17:08 +0000)
committerfhanik <fhanik@13f79535-47bb-0310-9956-ffa450edef68>
Tue, 7 Jul 2009 17:08:31 +0000 (17:08 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@791912 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/catalina/core/StandardThreadExecutor.java

index 9e7d142..6bcf12c 100644 (file)
@@ -98,7 +98,7 @@ public class StandardThreadExecutor implements Executor {
     public void stop() throws LifecycleException{
         lifecycle.fireLifecycleEvent(BEFORE_STOP_EVENT, null);
         lifecycle.fireLifecycleEvent(STOP_EVENT, null);
-        if ( executor != null ) executor.shutdown();
+        if ( executor != null ) executor.shutdownNow();
         executor = null;
         lifecycle.fireLifecycleEvent(AFTER_STOP_EVENT, null);
     }