Code clean-up.
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Fri, 12 Jun 2009 11:11:57 +0000 (11:11 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Fri, 12 Jun 2009 11:11:57 +0000 (11:11 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@784070 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/catalina/valves/CometConnectionManagerValve.java

index c26d4e4..e89e425 100644 (file)
@@ -192,7 +192,7 @@ public class CometConnectionManagerValve
 
     
     public void lifecycleEvent(LifecycleEvent event) {
-        if (event.getType() == Lifecycle.BEFORE_STOP_EVENT) {
+        if (Lifecycle.BEFORE_STOP_EVENT.equals(event.getType())) {
             // The container is getting stopped, close all current connections 
             Iterator<Request> iterator = cometRequests.iterator();
             while (iterator.hasNext()) {