Author: toad
Date: 2008-03-29 12:42:19 +0000 (Sat, 29 Mar 2008)
New Revision: 18820
Modified:
trunk/freenet/src/freenet/node/NodeClientCore.java
Log:
Can return an SSKBlock also!
Modified: trunk/freenet/src/freenet/node/NodeClientCore.java
===================================================================
--- trunk/freenet/src/freenet/node/NodeClientCore.java 2008-03-29 02:57:44 UTC
(rev 18819)
+++ trunk/freenet/src/freenet/node/NodeClientCore.java 2008-03-29 12:42:19 UTC
(rev 18820)
@@ -488,7 +488,7 @@
void asyncGet(Key key, boolean cache, boolean offersOnly, long uid,
RequestSender.Listener listener) {
try {
Object o = node.makeRequestSender(key, node.maxHTL(),
uid, null, false, cache, false, offersOnly);
- if(o instanceof CHKBlock) {
+ if(o instanceof KeyBlock) {
node.unlockUID(uid, false, false, true, false);
return; // Already have it.
}