Author: toad
Date: 2008-02-18 11:25:36 +0000 (Mon, 18 Feb 2008)
New Revision: 18028
Modified:
trunk/freenet/src/freenet/node/NodeClientCore.java
Log:
Prevent IllegalStateException in unlockUID called from
asyncGet$onRequestSenderFinished when transfer coalescing has happened.
Modified: trunk/freenet/src/freenet/node/NodeClientCore.java
===================================================================
--- trunk/freenet/src/freenet/node/NodeClientCore.java 2008-02-17 21:37:22 UTC
(rev 18027)
+++ trunk/freenet/src/freenet/node/NodeClientCore.java 2008-02-18 11:25:36 UTC
(rev 18028)
@@ -453,7 +453,8 @@
}
public void onRequestSenderFinished(int status) {
- node.unlockUID(uid, isSSK, false, false, false);
+ // If transfer coalescing has happened, we may
have already unlocked.
+ node.unlockUID(uid, isSSK, false, true, false);
if(listener != null)
listener.completed(status ==
RequestSender.SUCCESS);
}