Author: toad
Date: 2008-11-18 14:29:11 +0000 (Tue, 18 Nov 2008)
New Revision: 23729

Modified:
   trunk/freenet/src/freenet/support/io/TempBucketFactory.java
Log:
Fix _maybeResetInputStream.


Modified: trunk/freenet/src/freenet/support/io/TempBucketFactory.java
===================================================================
--- trunk/freenet/src/freenet/support/io/TempBucketFactory.java 2008-11-18 
13:59:37 UTC (rev 23728)
+++ trunk/freenet/src/freenet/support/io/TempBucketFactory.java 2008-11-18 
14:29:11 UTC (rev 23729)
@@ -252,6 +252,11 @@
                        public void _maybeResetInputStream() throws IOException 
{
                                if(idx != osIndex)
                                        close();
+                               else {
+                                       Closer.close(currentIS);
+                                       currentIS = 
currentBucket.getInputStream();
+                                       currentIS.skip(index);
+                               }
                        }
                        
                        @Override

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

Reply via email to