Author: toad
Date: 2009-04-03 19:21:55 +0000 (Fri, 03 Apr 2009)
New Revision: 26478
Modified:
trunk/freenet/src/freenet/client/async/SplitFileFetcherSegment.java
Log:
Fix silly internal api
Modified: trunk/freenet/src/freenet/client/async/SplitFileFetcherSegment.java
===================================================================
--- trunk/freenet/src/freenet/client/async/SplitFileFetcherSegment.java
2009-04-03 18:58:08 UTC (rev 26477)
+++ trunk/freenet/src/freenet/client/async/SplitFileFetcherSegment.java
2009-04-03 19:21:55 UTC (rev 26478)
@@ -516,7 +516,7 @@
container.store(dataBuckets[i]);
}
}
- if(isCollectingBinaryBlob(parent)) {
+ if(isCollectingBinaryBlob()) {
for(int i=0;i<dataBuckets.length;i++) {
Bucket data =
dataBlockStatus[i].getData();
if(data == null)
@@ -553,7 +553,7 @@
// Otherwise a race is possible that might result in it
not seeing our finishing.
finished = true;
if(persistent) container.store(this);
- if(splitfileType == Metadata.SPLITFILE_NONREDUNDANT ||
!isCollectingBinaryBlob(parent))
+ if(splitfileType == Metadata.SPLITFILE_NONREDUNDANT ||
!isCollectingBinaryBlob())
parentFetcher.segmentFinished(SplitFileFetcherSegment.this, container, context);
// Leave active before queueing
} catch (IOException e) {
@@ -728,7 +728,7 @@
}
}
// Defer the completion until we have generated healing blocks
if we are collecting binary blobs.
- if(isCollectingBinaryBlob(parent)) {
+ if(isCollectingBinaryBlob()) {
if(persistent)
container.activate(parentFetcher, 1);
parentFetcher.segmentFinished(SplitFileFetcherSegment.this, container, context);
@@ -741,7 +741,7 @@
}
}
- boolean isCollectingBinaryBlob(ClientRequester parent) {
+ boolean isCollectingBinaryBlob() {
if(parent instanceof ClientGetter) {
ClientGetter getter = (ClientGetter) (parent);
return getter.collectingBinaryBlob();
_______________________________________________
cvs mailing list
[email protected]
http://emu.freenetproject.org/cgi-bin/mailman/listinfo/cvs