mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-12 18:59:06 +01:00
Flush the output stream when closing.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user