Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=45618
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Tue, 2 Sep 2008 21:44:37 +0000 (21:44 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Tue, 2 Sep 2008 21:44:37 +0000 (21:44 +0000)
Make sure the selector is closed.
Almost certain not to be an issue in any real deployment but still - technically - a bug.

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

java/org/apache/catalina/tribes/transport/nio/ParallelNioSender.java

index b8c3de5..7743ef3 100644 (file)
@@ -277,6 +277,7 @@ public class ParallelNioSender extends AbstractSender implements MultiPointSende
 
     public void finalize() {
         try {disconnect(); }catch ( Exception ignore){}
+        try {selector.close();} catch (Exception ignore) {}
     }
 
     public boolean keepalive() {