From 99469f9f3185cb7963d8ab4bbdc7c5a6a583598b Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Sat, 7 May 2016 20:20:47 +0300 Subject: fix typos --- src/main/java/com/juick/xmpp/s2s/ConnectionIn.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main') diff --git a/src/main/java/com/juick/xmpp/s2s/ConnectionIn.java b/src/main/java/com/juick/xmpp/s2s/ConnectionIn.java index 950a2eaa..85c64db3 100644 --- a/src/main/java/com/juick/xmpp/s2s/ConnectionIn.java +++ b/src/main/java/com/juick/xmpp/s2s/ConnectionIn.java @@ -47,8 +47,8 @@ public class ConnectionIn extends Connection { parser.next(); // stream:stream updateTsRemoteData(); if (!parser.getName().equals("stream") - || !parser.getAttributeValue(null, "stream").equals(NS_STREAM) - || !parser.getAttributeValue(null, "db").equals(NS_DB)) { + || !parser.getNamespace("stream").equals(NS_STREAM) + || !parser.getNamespace("db").equals(NS_DB)) { // || !parser.getAttributeValue(null, "version").equals("1.0") // || !parser.getAttributeValue(null, "to").equals(Main.HOSTNAME)) { throw new Exception("STREAM FROM ? " + streamID + " INVALID FIRST PACKET"); -- cgit v1.2.3