directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From trus...@apache.org
Subject svn commit: r164045 - in /directory/network/trunk/src/java/org/apache/mina/io: datagram/DatagramConnector.java socket/SocketConnector.java socket/SocketIoProcessor.java
Date Thu, 21 Apr 2005 12:18:52 GMT
Author: trustin
Date: Thu Apr 21 05:18:52 2005
New Revision: 164045

URL: http://svn.apache.org/viewcvs?rev=164045&view=rev
Log:
Removed unnecessary socket().close() calls.

Modified:
    directory/network/trunk/src/java/org/apache/mina/io/datagram/DatagramConnector.java
    directory/network/trunk/src/java/org/apache/mina/io/socket/SocketConnector.java
    directory/network/trunk/src/java/org/apache/mina/io/socket/SocketIoProcessor.java

Modified: directory/network/trunk/src/java/org/apache/mina/io/datagram/DatagramConnector.java
URL: http://svn.apache.org/viewcvs/directory/network/trunk/src/java/org/apache/mina/io/datagram/DatagramConnector.java?rev=164045&r1=164044&r2=164045&view=diff
==============================================================================
--- directory/network/trunk/src/java/org/apache/mina/io/datagram/DatagramConnector.java (original)
+++ directory/network/trunk/src/java/org/apache/mina/io/datagram/DatagramConnector.java Thu
Apr 21 05:18:52 2005
@@ -139,7 +139,6 @@
         {
             if( !initialized )
             {
-                ch.socket().close();
                 ch.close();
             }
         }
@@ -465,7 +464,6 @@
                 {
                     try
                     {
-                        req.channel.socket().close();
                         req.channel.close();
                     }
                     catch (IOException e)
@@ -497,7 +495,6 @@
                 DatagramChannel ch = ( DatagramChannel ) key.channel();
                 try
                 {
-                    ch.socket().close();
                     ch.close();
                 }
                 catch( IOException e )

Modified: directory/network/trunk/src/java/org/apache/mina/io/socket/SocketConnector.java
URL: http://svn.apache.org/viewcvs/directory/network/trunk/src/java/org/apache/mina/io/socket/SocketConnector.java?rev=164045&r1=164044&r2=164045&view=diff
==============================================================================
--- directory/network/trunk/src/java/org/apache/mina/io/socket/SocketConnector.java (original)
+++ directory/network/trunk/src/java/org/apache/mina/io/socket/SocketConnector.java Thu Apr
21 05:18:52 2005
@@ -145,7 +145,6 @@
         {
             if( !success )
             {
-                ch.socket().close();
                 ch.close();
             }
         }
@@ -257,7 +256,6 @@
                 {
                     try
                     {
-                        ch.socket().close();
                         ch.close();
                     }
                     catch( IOException e )

Modified: directory/network/trunk/src/java/org/apache/mina/io/socket/SocketIoProcessor.java
URL: http://svn.apache.org/viewcvs/directory/network/trunk/src/java/org/apache/mina/io/socket/SocketIoProcessor.java?rev=164045&r1=164044&r2=164045&view=diff
==============================================================================
--- directory/network/trunk/src/java/org/apache/mina/io/socket/SocketIoProcessor.java (original)
+++ directory/network/trunk/src/java/org/apache/mina/io/socket/SocketIoProcessor.java Thu
Apr 21 05:18:52 2005
@@ -193,7 +193,6 @@
 
             try
             {
-                ch.socket().close();
                 ch.close();
             }
             catch( IOException e )



Mime
View raw message