|
From: <jbo...@li...> - 2006-06-12 16:20:25
|
Author: adamw
Date: 2006-06-12 12:20:21 -0400 (Mon, 12 Jun 2006)
New Revision: 4743
Modified:
labs/shotoku/trunk/shotoku-file-access/src/java/org/jboss/shotoku/fileaccess/FileAccessServlet.java
Log:
File access fix
Modified: labs/shotoku/trunk/shotoku-file-access/src/java/org/jboss/shotoku/fileaccess/FileAccessServlet.java
===================================================================
--- labs/shotoku/trunk/shotoku-file-access/src/java/org/jboss/shotoku/fileaccess/FileAccessServlet.java 2006-06-12 16:19:23 UTC (rev 4742)
+++ labs/shotoku/trunk/shotoku-file-access/src/java/org/jboss/shotoku/fileaccess/FileAccessServlet.java 2006-06-12 16:20:21 UTC (rev 4743)
@@ -105,8 +105,11 @@
try {
Tools.transfer(ci.getIs(), os);
} finally {
- os.close();
- ci.getIs().close();
+ try {
+ os.close();
+ } finally {
+ ci.getIs().close();
+ }
}
} catch (Exception e) {
log.info("Unable to send a file.", e);
|