Unverified Commit b35e03da authored by Dave Cridland's avatar Dave Cridland Committed by GitHub

Merge pull request #1042 from guusdk/OF-1507_Handle-s2s-stream-errors

OF-1507: Handle S2S stream errors.
parents abc1eb7f d05636da
...@@ -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