r26661 - trunk/freenet/src/freenet/client/async

[email protected]
Newsgroups gmane.network.freenet.cvs
Message-ID <[email protected]>
Author: toad
Date: 2009-04-08 19:24:49 +0000 (Wed, 08 Apr 2009)
New Revision: 26661

Modified:
   trunk/freenet/src/freenet/client/async/ClientRequestSchedulerCore.java
Log:
Fix not caching transient inserts regardless of settings. (FMS long delays seeing own messages bug)


Modified: trunk/freenet/src/freenet/client/async/ClientRequestSchedulerCore.java
===================================================================
--- trunk/freenet/src/freenet/client/async/ClientRequestSchedulerCore.java	2009-04-08 19:11:44 UTC (rev 26660)
+++ trunk/freenet/src/freenet/client/async/ClientRequestSchedulerCore.java	2009-04-08 19:24:49 UTC (rev 26661)
@@ -346,7 +346,10 @@
 				ignoreStore = ctx.ignoreStore;
 			} else {
 				localRequestOnly = false;
-				cacheLocalRequests = false;
+				if(req instanceof SendableInsert)
+					cacheLocalRequests = ((SendableInsert)req).cacheInserts(null);
+				else
+					cacheLocalRequests = false;
 				ignoreStore = false;
 			}
 			ret = new TransientChosenBlock(req, token, key, ckey, localRequestOnly, cacheLocalRequests, ignoreStore, sched);
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.