Author: toad
Date: 2009-04-03 14:38:33 +0000 (Fri, 03 Apr 2009)
New Revision: 26448

Modified:
   trunk/freenet/src/freenet/client/async/PersistentChosenRequest.java
Log:
indent


Modified: trunk/freenet/src/freenet/client/async/PersistentChosenRequest.java
===================================================================
--- trunk/freenet/src/freenet/client/async/PersistentChosenRequest.java 
2009-04-03 14:38:14 UTC (rev 26447)
+++ trunk/freenet/src/freenet/client/async/PersistentChosenRequest.java 
2009-04-03 14:38:33 UTC (rev 26448)
@@ -288,18 +288,18 @@
        public void pruneDuplicates(ClientRequestScheduler sched) {
                ArrayList<PersistentChosenBlock> dumped = null;
                try {
-               synchronized(this) {
-               for(int i=0;i<blocksNotStarted.size();i++) {
-                       PersistentChosenBlock block = blocksNotStarted.get(i);
-                       Key key = block.key;
-                       if(key == null) continue;
-                       if(sched.hasFetchingKey(key)) {
-                               blocksNotStarted.remove(i);
-                               if(logMINOR) Logger.minor(this, "Pruned 
duplicate "+block+" from "+this);
-                               i--;
+                       synchronized(this) {
+                               for(int i=0;i<blocksNotStarted.size();i++) {
+                                       PersistentChosenBlock block = 
blocksNotStarted.get(i);
+                                       Key key = block.key;
+                                       if(key == null) continue;
+                                       if(sched.hasFetchingKey(key)) {
+                                               blocksNotStarted.remove(i);
+                                               if(logMINOR) Logger.minor(this, 
"Pruned duplicate "+block+" from "+this);
+                                               i--;
+                                       }
+                               }
                        }
-               }
-               }
                } finally {
                        if(dumped != null) {
                                for(PersistentChosenBlock block : dumped)

_______________________________________________
cvs mailing list
[email protected]
http://emu.freenetproject.org/cgi-bin/mailman/listinfo/cvs

Reply via email to