Author: toad
Date: 2008-05-03 14:52:32 +0000 (Sat, 03 May 2008)
New Revision: 19702

Modified:
   trunk/freenet/src/freenet/client/async/USKManager.java
Log:
If there are no remaining callbacks then there's no problem.

Modified: trunk/freenet/src/freenet/client/async/USKManager.java
===================================================================
--- trunk/freenet/src/freenet/client/async/USKManager.java      2008-05-03 
14:50:09 UTC (rev 19701)
+++ trunk/freenet/src/freenet/client/async/USKManager.java      2008-05-03 
14:52:32 UTC (rev 19702)
@@ -239,7 +239,10 @@
                        if(runBackgroundFetch) {
                                USKFetcher f = (USKFetcher) 
backgroundFetchersByClearUSK.get(clear);
                                if(f == null) {
-                                       Logger.error(this, "Unsubscribing 
"+cb+" for "+origUSK+" but not already subscribed", new Exception("error"));
+                                       if(newCallbacks.length == 0)
+                                               Logger.minor(this, 
"Unsubscribing "+cb+" for "+origUSK+" but not already subscribed. No 
callbacks.", new Exception("debug"));
+                                       else
+                                               Logger.error(this, 
"Unsubscribing "+cb+" for "+origUSK+" but not already subscribed, remaining 
"+newCallbacks.length+" callbacks", new Exception("error"));
                                } else {
                                        f.removeSubscriber(cb);
                                        if(!f.hasSubscribers()) {


Reply via email to