You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@roller.apache.org by ag...@apache.org on 2005/07/12 21:42:18 UTC

svn commit: r216010 - /incubator/roller/trunk/src/org/roller/presentation/ResourceServlet.java

Author: agilliland
Date: Tue Jul 12 12:42:16 2005
New Revision: 216010

URL: http://svn.apache.org/viewcvs?rev=216010&view=rev
Log:
small bug fix.  we now explicitly close all files ... this was causing a problem for ppl using nfs.

Modified:
    incubator/roller/trunk/src/org/roller/presentation/ResourceServlet.java

Modified: incubator/roller/trunk/src/org/roller/presentation/ResourceServlet.java
URL: http://svn.apache.org/viewcvs/incubator/roller/trunk/src/org/roller/presentation/ResourceServlet.java?rev=216010&r1=216009&r2=216010&view=diff
==============================================================================
--- incubator/roller/trunk/src/org/roller/presentation/ResourceServlet.java (original)
+++ incubator/roller/trunk/src/org/roller/presentation/ResourceServlet.java Tue Jul 12 12:42:16 2005
@@ -102,6 +102,10 @@
         InputStream resource_file = new FileInputStream(resource);
         while((length = resource_file.read(buf)) > 0)
             out.write(buf, 0, length);
+        
+        // cleanup
+        out.close();
+        resource_file.close();
     }