Author: toad
Date: 2008-10-21 16:34:05 +0000 (Tue, 21 Oct 2008)
New Revision: 23015

Modified:
   branches/db4o/freenet/src/freenet/client/async/BaseSingleFileFetcher.java
Log:
Please don't just patch the symptom.


Modified: 
branches/db4o/freenet/src/freenet/client/async/BaseSingleFileFetcher.java
===================================================================
--- branches/db4o/freenet/src/freenet/client/async/BaseSingleFileFetcher.java   
2008-10-21 15:24:47 UTC (rev 23014)
+++ branches/db4o/freenet/src/freenet/client/async/BaseSingleFileFetcher.java   
2008-10-21 16:34:05 UTC (rev 23015)
@@ -329,8 +329,7 @@
                if(finished) return null;
                Key newKey = key.getNodeKey().cloneKey();
                short prio = parent.getPriorityClass();
-               //Why would ctx ever be null here!? If it is, lets assume you 
don't want to cache it. - TheSeeker
-               boolean dontCache = ctx == null ? true : 
!ctx.cacheLocalRequests;
+               boolean dontCache = !ctx.cacheLocalRequests;
                KeyListener ret = new SingleKeyListener(newKey, this, 
dontCache, prio, persistent);
                if(persistent) {
                        container.deactivate(key, 5);


Reply via email to