r27057 - trunk/freenet/src/freenet/node

[email protected] Sun, 19 Apr 2009 15:36:44 +0000
Newsgroups gmane.network.freenet.cvs
Message-ID <[email protected]>
Author: j16sdiz
Date: 2009-04-19 15:36:44 +0000 (Sun, 19 Apr 2009)
New Revision: 27057

Modified:
   trunk/freenet/src/freenet/node/FailureTableEntry.java
Log:
Fix cleanup() bug

Modified: trunk/freenet/src/freenet/node/FailureTableEntry.java
===================================================================
--- trunk/freenet/src/freenet/node/FailureTableEntry.java	2009-04-19 15:29:54 UTC (rev 27056)
+++ trunk/freenet/src/freenet/node/FailureTableEntry.java	2009-04-19 15:36:44 UTC (rev 27057)
@@ -447,7 +447,9 @@
 	public synchronized boolean cleanup() {
 		long now = System.currentTimeMillis(); // don't pass in as a pass over the whole FT may take a while. get it in the method.
 		
-		return cleanupRequestor(now) && cleanupRequested(now);
+		boolean empty = cleanupRequestor(now);
+		empty &= cleanupRequested(now);
+		return empty;
 	}
 
 	private boolean cleanupRequestor(long now) {