Author: nextgens
Date: 2008-07-19 08:50:40 +0000 (Sat, 19 Jul 2008)
New Revision: 21230

Modified:
   trunk/freenet/src/freenet/node/fcp/FCPConnectionHandler.java
Log:
fix a typo in a comment

Modified: trunk/freenet/src/freenet/node/fcp/FCPConnectionHandler.java
===================================================================
--- trunk/freenet/src/freenet/node/fcp/FCPConnectionHandler.java        
2008-07-19 08:42:25 UTC (rev 21229)
+++ trunk/freenet/src/freenet/node/fcp/FCPConnectionHandler.java        
2008-07-19 08:50:40 UTC (rev 21230)
@@ -397,7 +397,7 @@
                if(read && (readFile != null) && readFile.canWrite()){ 
                        // We don't want to attempt to write before: in case an 
IOException is raised, we want to inform the
                        // client somehow that the node can't write there... 
And setting readFile to null means we won't inform
-                       // it on the status (as if it hasn't requested us to do 
the test).
+                       // it on the status (as if it hadn't requested us to do 
the test).
                        FileOutputStream fos = null;
                        BufferedOutputStream bos = null;
                        try {
@@ -405,7 +405,6 @@
                                bos = new BufferedOutputStream(fos);
                                bos.write(result.readContent.getBytes("UTF-8"));
                                bos.flush();
-                               bos.close();
                        } catch (IOException e) {
                                Logger.error(this, "Got a IOE while creating 
the file (" + readFile.toString() + " ! " + e.getMessage());
                        } finally {


Reply via email to