Flush the output stream when closing.

This commit is contained in:
akwizgran
2012-12-07 17:21:58 +00:00
parent 13f9127da0
commit 57bc9d3313

View File

@@ -18,6 +18,12 @@ class SenderOutputStream extends OutputStream {
@Override
public void close() throws IOException {
send(true);
try {
sender.flush();
} catch(InterruptedException e) {
Thread.currentThread().interrupt();
throw new IOException("Interrupted while closing");
}
}
@Override