rana_b 02/03/09 22:06:38
Modified: ftpserver/src/java/org/apache/avalon/ftpserver
ConnectionService.java
Log:
properly disposing resources
Revision Changes Path
1.3 +4 -12
jakarta-avalon-apps/ftpserver/src/java/org/apache/avalon/ftpserver/ConnectionService.java
Index: ConnectionService.java
===================================================================
RCS file:
/home/cvs/jakarta-avalon-apps/ftpserver/src/java/org/apache/avalon/ftpserver/ConnectionService.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- ConnectionService.java 6 Mar 2002 22:12:30 -0000 1.2
+++ ConnectionService.java 10 Mar 2002 06:06:38 -0000 1.3
@@ -394,10 +394,11 @@
}
/**
- * Close this user manager. If logs out all the connected
+ * Dispose connection service. If logs out all the connected
* users and stops the cleaner thread.
*/
- public void close() {
+ public void dispose() {
+ mConfig.getLogger().info("Closing connection service...");
// close all connections
if (mConList != null) {
@@ -411,14 +412,5 @@
mTimer = null;
}
}
-
-
- /**
- * Last defense to logout all the connected users and stop
- * the timer.
- */
- protected void finalize() throws Throwable {
- close();
- super.finalize();
- }
+
}
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>