1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-11-22 20:12:07 +01:00

Flush IBB output stream before closing it. SMACK-231

git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@8539 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
Alex Wenckus 2007-06-11 21:42:50 +00:00 committed by alex
parent 0971f5fffd
commit 8fdd2702db

View file

@ -204,7 +204,7 @@ public class IBBTransferNegotiator extends StreamNegotiator {
count += len;
}
private void flushBuffer() {
private synchronized void flushBuffer() {
writeToXML(buffer, 0, count);
count = 0;
@ -234,6 +234,7 @@ public class IBBTransferNegotiator extends StreamNegotiator {
}
public void close() throws IOException {
this.flush();
connection.sendPacket(closePacket);
}