Skip to content
Snippets Groups Projects
Commit 57bc9d33 authored by akwizgran's avatar akwizgran
Browse files

Flush the output stream when closing.

parent 13f9127d
No related branches found
No related tags found
No related merge requests found
...@@ -18,6 +18,12 @@ class SenderOutputStream extends OutputStream { ...@@ -18,6 +18,12 @@ class SenderOutputStream extends OutputStream {
@Override @Override
public void close() throws IOException { public void close() throws IOException {
send(true); send(true);
try {
sender.flush();
} catch(InterruptedException e) {
Thread.currentThread().interrupt();
throw new IOException("Interrupted while closing");
}
} }
@Override @Override
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment