Commit e2bed176 authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gaston

Modified to send a </stream:stream> when closing the connection. JM-145


git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/trunk@1041 b35dd754-fafc-0310-a699-88a17e54d16e
parent abf0a282
......@@ -144,6 +144,16 @@ public class SocketConnection extends BasicConnection {
if (session != null) {
session.setStatus(Session.STATUS_CLOSED);
}
synchronized (writer) {
try {
writer.write("</stream:stream>");
if (flashClient) {
writer.write('\0');
}
xmlSerializer.flush();
}
catch (IOException e) {}
}
}
catch (Exception e) {
// Do nothing
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment