Author: toad
Date: 2009-02-04 19:50:58 +0000 (Wed, 04 Feb 2009)
New Revision: 25563

Modified:
   branches/db4o/freenet/src/freenet/client/async/SplitFileInserterSegment.java
Log:
doh


Modified: 
branches/db4o/freenet/src/freenet/client/async/SplitFileInserterSegment.java
===================================================================
--- 
branches/db4o/freenet/src/freenet/client/async/SplitFileInserterSegment.java    
    2009-02-04 19:50:41 UTC (rev 25562)
+++ 
branches/db4o/freenet/src/freenet/client/async/SplitFileInserterSegment.java    
    2009-02-04 19:50:58 UTC (rev 25563)
@@ -942,7 +942,7 @@
                synchronized(this) {
                        if(blockNum >= dataBlocks.length) {
                                // Check block.
-                               int checkNum = blockNum = dataBlocks.length;
+                               int checkNum = blockNum - dataBlocks.length;
                                if(checkFinished[checkNum]) {
                                        if(checkFailed[checkNum])
                                                Logger.error(this, "Got 
onFailure() but block has already failed! Check block "+checkNum+" on "+this);
@@ -1091,7 +1091,7 @@
                synchronized(this) {
                        if(blockNum >= dataBlocks.length) {
                                // Check block.
-                               int checkNum = blockNum = dataBlocks.length;
+                               int checkNum = blockNum - dataBlocks.length;
                                if(!checkFinished[checkNum]) {
                                        checkFinished[checkNum] = true;
                                        checkFailed[checkNum] = false;

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

Reply via email to