Commit d05636da authored by Guus der Kinderen's avatar Guus der Kinderen

OF-1507: Handle S2S stream errors.

parent abc1eb7f
...@@ -214,7 +214,11 @@ public abstract class StanzaHandler { ...@@ -214,7 +214,11 @@ public abstract class StanzaHandler {
} }
String tag = doc.getName(); String tag = doc.getName();
if ("message".equals(tag)) { if ("error".equals(tag)) {
Log.info("The stream is being closed by the peer, which sent this stream error: " + doc.asXML());
session.close();
}
else if ("message".equals(tag)) {
Message packet; Message packet;
try { try {
packet = new Message(doc, !validateJIDs()); packet = new Message(doc, !validateJIDs());
......
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