git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@520176
13f79535-47bb-0310-9956-
ffa450edef68
if (ka != null && ka.getComet()) {
//the comet event takes care of clean up
processSocket(ka.getChannel(), status, dispatch);
- }else {
- if (key.isValid()) key.cancel();
- if (key.channel().isOpen()) key.channel().close();
- key.attach(null);
}
+ if (key.isValid()) key.cancel();
+ if (key.channel().isOpen()) key.channel().close();
+ key.attach(null);
} catch (Throwable e) {
if ( log.isDebugEnabled() ) log.error("",e);
// Ignore