Author: nextgens
Date: 2008-08-25 13:53:29 +0000 (Mon, 25 Aug 2008)
New Revision: 22135

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

Modified: trunk/freenet/src/freenet/support/io/TempBucketFactory.java
===================================================================
--- trunk/freenet/src/freenet/support/io/TempBucketFactory.java 2008-08-25 
13:52:40 UTC (rev 22134)
+++ trunk/freenet/src/freenet/support/io/TempBucketFactory.java 2008-08-25 
13:53:29 UTC (rev 22135)
@@ -127,7 +127,7 @@
                                                shouldMigrate = true;

                                        if(shouldMigrate) {
-                                               os.close();
+                                               Closer.close(os);
                                                if(logMINOR) {
                                                        if(isOversized)
                                                                
Logger.minor(this, "The bucket is over 
"+SizeUtil.formatSize(maxRAMBucketSize*RAMBUCKET_CONVERSION_FACTOR)+": we will 
force-migrate it to disk.");
@@ -187,7 +187,7 @@
                                synchronized(currentBucket) {
                                        _maybeMigrateRamBucket(currentSize);
                                        _maybeResetOutputStream();
-                                       os.close();
+                                       Closer.close(os);
                                }
                        }
                }


Reply via email to