commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d..@apache.org
Subject svn commit: r358867 - /jakarta/commons/proper/net/trunk/src/test/org/apache/commons/net/time/TimeTCPClientTest.java
Date Fri, 23 Dec 2005 21:22:52 GMT
Author: dfs
Date: Fri Dec 23 13:22:50 2005
New Revision: 358867

URL: http://svn.apache.org/viewcvs?rev=358867&view=rev
Log:
Test isConnected before disconnect.

Modified:
    jakarta/commons/proper/net/trunk/src/test/org/apache/commons/net/time/TimeTCPClientTest.java

Modified: jakarta/commons/proper/net/trunk/src/test/org/apache/commons/net/time/TimeTCPClientTest.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/net/trunk/src/test/org/apache/commons/net/time/TimeTCPClientTest.java?rev=358867&r1=358866&r2=358867&view=diff
==============================================================================
--- jakarta/commons/proper/net/trunk/src/test/org/apache/commons/net/time/TimeTCPClientTest.java
(original)
+++ jakarta/commons/proper/net/trunk/src/test/org/apache/commons/net/time/TimeTCPClientTest.java
Fri Dec 23 13:22:50 2005
@@ -130,6 +130,7 @@
                 time = System.currentTimeMillis();
             } finally
             {
+              if(client.isConnected())
                 client.disconnect();
             }
 
@@ -142,6 +143,7 @@
                 time2 = System.currentTimeMillis();
             } finally
             {
+              if(client.isConnected())
                 client.disconnect();
             }
 



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message