Author: toad
Date: 2008-03-21 14:58:34 +0000 (Fri, 21 Mar 2008)
New Revision: 18673

Modified:
   trunk/freenet/src/freenet/client/async/ClientRequestScheduler.java
Log:
Logging

Modified: trunk/freenet/src/freenet/client/async/ClientRequestScheduler.java
===================================================================
--- trunk/freenet/src/freenet/client/async/ClientRequestScheduler.java  
2008-03-21 14:56:02 UTC (rev 18672)
+++ trunk/freenet/src/freenet/client/async/ClientRequestScheduler.java  
2008-03-21 14:58:34 UTC (rev 18673)
@@ -468,10 +468,10 @@
                                        if(v == null) {
                                                Logger.error(this, "No HashSet 
registered for "+cr);
                                        } else {
-                                               v.remove(req);
+                                               boolean removed = v.remove(req);
                                                if(v.isEmpty())
                                                        
allRequestsByClientRequest.remove(cr);
-                                               if(logMINOR) Logger.minor(this, 
"Removed from HashSet for "+cr+" which now has "+v.size()+" elements");
+                                               if(logMINOR) Logger.minor(this, 
(removed ? "" : "Not ") + "Removed from HashSet for "+cr+" which now has 
"+v.size()+" elements");
                                        }
                                        // Do not remove from the pendingKeys 
list.
                                        // Whether it is running a request, 
waiting to execute, or waiting on the


Reply via email to