Author: toad
Date: 2009-04-20 18:35:21 +0000 (Mon, 20 Apr 2009)
New Revision: 27105
Modified:
trunk/freenet/src/freenet/client/async/USKFetcher.java
Log:
indent
Modified: trunk/freenet/src/freenet/client/async/USKFetcher.java
===================================================================
--- trunk/freenet/src/freenet/client/async/USKFetcher.java 2009-04-20
18:30:41 UTC (rev 27104)
+++ trunk/freenet/src/freenet/client/async/USKFetcher.java 2009-04-20
18:35:21 UTC (rev 27105)
@@ -816,20 +816,20 @@
done = true;
}
if(logMINOR) Logger.minor(this, "Checked
datastore, finishing registration for "+attempts.length+" checkers for
"+USKFetcher.this+" for "+origUSK);
- for(int i=0;i<attempts.length;i++) {
- long lastEd =
uskManager.lookupLatestSlot(origUSK);
- // FIXME not sure this
condition works, test it!
- if(keepLastData &&
lastRequestData == null && lastEd == origUSK.suggestedEdition)
- lastEd--; // If we want
the data, then get it for the known edition, so we always get the data, so
USKInserter can compare it and return the old edition if it is identical.
- if(attempts[i] == null)
continue;
- if(attempts[i].number > lastEd)
-
attempts[i].schedule(container, context);
- else {
- synchronized(this) {
-
runningAttempts.remove(attempts[i]);
- }
+ for(int i=0;i<attempts.length;i++) {
+ long lastEd =
uskManager.lookupLatestSlot(origUSK);
+ // FIXME not sure this condition works,
test it!
+ if(keepLastData && lastRequestData ==
null && lastEd == origUSK.suggestedEdition)
+ lastEd--; // If we want the
data, then get it for the known edition, so we always get the data, so
USKInserter can compare it and return the old edition if it is identical.
+ if(attempts[i] == null) continue;
+ if(attempts[i].number > lastEd)
+ attempts[i].schedule(container,
context);
+ else {
+ synchronized(this) {
+
runningAttempts.remove(attempts[i]);
}
}
+ }
}
@Override
_______________________________________________
cvs mailing list
[email protected]
http://emu.freenetproject.org/cgi-bin/mailman/listinfo/cvs