Followup to r1066310.
authorkkolinko <kkolinko@13f79535-47bb-0310-9956-ffa450edef68>
Wed, 2 Feb 2011 03:45:05 +0000 (03:45 +0000)
committerkkolinko <kkolinko@13f79535-47bb-0310-9956-ffa450edef68>
Wed, 2 Feb 2011 03:45:05 +0000 (03:45 +0000)
Simplify: call stopAwait() unconditionally.

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

java/org/apache/catalina/core/StandardServer.java

index f08a731..d77b9e3 100644 (file)
@@ -407,6 +407,7 @@ public final class StandardServer extends LifecycleMBeanBase implements Server {
                     try {
                         Thread.sleep( 10000 );
                     } catch( InterruptedException ex ) {
+                        // continue and check the flag
                     }
                 }
             } finally {
@@ -744,8 +745,7 @@ public final class StandardServer extends LifecycleMBeanBase implements Server {
             services[i].stop();
         }
 
-        if (awaitThread != null)
-            stopAwait();
+        stopAwait();
 
     }