Author: nextgens
Date: 2008-09-01 15:15:08 +0000 (Mon, 01 Sep 2008)
New Revision: 22300

Modified:
   trunk/freenet/src/freenet/support/io/TempBucketFactory.java
Log:
TempBucket: get rid of an outdated comment and force-close the FD

Modified: trunk/freenet/src/freenet/support/io/TempBucketFactory.java
===================================================================
--- trunk/freenet/src/freenet/support/io/TempBucketFactory.java 2008-09-01 
15:13:09 UTC (rev 22299)
+++ trunk/freenet/src/freenet/support/io/TempBucketFactory.java 2008-09-01 
15:15:08 UTC (rev 22300)
@@ -110,9 +110,8 @@
                                Bucket tempFB = _makeFileBucket();
                                if(os != null) {
                                        os.flush();
-                                       os.close();
-                               // Update the global link so that all streams 
will be reset
-                               // DO NOT INCREMENT THE osIndex HERE!
+                                       Closer.close(os);
+                                       // DO NOT INCREMENT THE osIndex HERE!
                                        os = tempFB.getOutputStream();
                                        if(currentSize > 0)
                                                BucketTools.copyTo(toMigrate, 
os, currentSize);


Reply via email to