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

Removed extra end of stream. JM-332


git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/trunk@1637 b35dd754-fafc-0310-a699-88a17e54d16e
parent a92017da
......@@ -84,7 +84,6 @@ public class ComponentSession extends Session {
// Include the bad-format in the response
StreamError error = new StreamError(StreamError.Condition.bad_format);
sb.append(error.toXML());
sb.append("</stream:stream>");
writer.write(sb.toString());
writer.flush();
// Close the underlying connection
......@@ -96,7 +95,6 @@ public class ComponentSession extends Session {
Log.debug("[ExComp] Component is not allowed to connect with subdomain: " + subdomain);
StreamError error = new StreamError(StreamError.Condition.host_unknown);
sb.append(error.toXML());
sb.append("</stream:stream>");
writer.write(sb.toString());
writer.flush();
// Close the underlying connection
......@@ -110,7 +108,6 @@ public class ComponentSession extends Session {
// Include the internal-server-error in the response
StreamError error = new StreamError(StreamError.Condition.internal_server_error);
sb.append(error.toXML());
sb.append("</stream:stream>");
writer.write(sb.toString());
writer.flush();
// Close the underlying connection
......@@ -124,7 +121,6 @@ public class ComponentSession extends Session {
// Include the conflict error in the response
StreamError error = new StreamError(StreamError.Condition.conflict);
sb.append(error.toXML());
sb.append("</stream:stream>");
writer.write(sb.toString());
writer.flush();
// Close the underlying connection
......@@ -170,7 +166,6 @@ public class ComponentSession extends Session {
// Include the conflict error in the response
StreamError error = new StreamError(StreamError.Condition.not_authorized);
sb.append(error.toXML());
sb.append("</stream:stream>");
writer.write(sb.toString());
writer.flush();
// Close the underlying connection
......
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