chemistry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From f...@apache.org
Subject svn commit: r1414210 - /chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/shared/ThresholdOutputStream.java
Date Tue, 27 Nov 2012 14:38:19 GMT
Author: fmui
Date: Tue Nov 27 14:38:18 2012
New Revision: 1414210

URL: http://svn.apache.org/viewvc?rev=1414210&view=rev
Log:
Server: Fixed bug in ThresholdOutputStream

Modified:
    chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/shared/ThresholdOutputStream.java

Modified: chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/shared/ThresholdOutputStream.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/shared/ThresholdOutputStream.java?rev=1414210&r1=1414209&r2=1414210&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/shared/ThresholdOutputStream.java
(original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/shared/ThresholdOutputStream.java
Tue Nov 27 14:38:18 2012
@@ -249,7 +249,10 @@ public class ThresholdOutputStream exten
      */
     public void destroy() {
         try {
-            close();
+            if (tmpStream != null) {
+                tmpStream.flush();
+                tmpStream.close();
+            }
         } catch (Exception e) {
             // ignore
         }



Mime
View raw message