]> source.dussan.org Git - vaadin-framework.git/commitdiff
#6499 Don't close the streams multiple times
authorLeif Åstrand <leif@vaadin.com>
Mon, 15 Aug 2011 13:29:36 +0000 (13:29 +0000)
committerLeif Åstrand <leif@vaadin.com>
Mon, 15 Aug 2011 13:29:36 +0000 (13:29 +0000)
svn changeset:20391/svn branch:6.7

src/com/vaadin/terminal/gwt/server/AbstractApplicationPortlet.java
src/com/vaadin/terminal/gwt/server/AbstractApplicationServlet.java

index 4abb3b6fd282672994083e54a5a37ec063fa810d..84cab80a197bd742aa343d6db334626d56c64163 100644 (file)
@@ -669,7 +669,6 @@ public abstract class AbstractApplicationPortlet extends GenericPortlet
                     out.write(buffer, 0, bytesRead);
                     out.flush();
                 }
-                out.close();
             } finally {
                 AbstractCommunicationManager.tryToCloseStream(data);
                 AbstractCommunicationManager.tryToCloseStream(out);
index 2fcbf3a850f0b76b7828f195096801356d40b3f6..95e76424249b6b1d82da61cfb5270368aed929a9 100644 (file)
@@ -943,8 +943,6 @@ public abstract class AbstractApplicationServlet extends HttpServlet implements
                     out.write(buffer, 0, bytesRead);
                     out.flush();
                 }
-                out.close();
-                data.close();
             } finally {
                 AbstractCommunicationManager.tryToCloseStream(out);
                 AbstractCommunicationManager.tryToCloseStream(data);