diff --git a/smack-tcp/src/main/java/org/jivesoftware/smack/tcp/XMPPTCPConnection.java b/smack-tcp/src/main/java/org/jivesoftware/smack/tcp/XMPPTCPConnection.java index eff3191e1..ffabe5989 100644 --- a/smack-tcp/src/main/java/org/jivesoftware/smack/tcp/XMPPTCPConnection.java +++ b/smack-tcp/src/main/java/org/jivesoftware/smack/tcp/XMPPTCPConnection.java @@ -1097,6 +1097,10 @@ public class XMPPTCPConnection extends AbstractXMPPConnection { break; case XmlPullParser.END_TAG: if (parser.getName().equals("stream")) { + if (!parser.getNamespace().equals("http://etherx.jabber.org/streams")) { + LOGGER.warning(XMPPTCPConnection.this + " but different namespace " + parser.getNamespace()); + break; + } closingStreamReceived.reportSuccess(); if (packetWriter.queue.isShutdown()) { // We received a closing stream element *after* we initiated the