aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/juick/xmpp/s2s
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2016-05-07 20:20:47 +0300
committerGravatar Vitaly Takmazov2016-05-07 20:20:47 +0300
commit99469f9f3185cb7963d8ab4bbdc7c5a6a583598b (patch)
tree46302deeb728193e896f09e00d494931bdee9771 /src/main/java/com/juick/xmpp/s2s
parentf8fec82fc5ecbf762d6a7b6047ad1529d0bbc09d (diff)
fix typos
Diffstat (limited to 'src/main/java/com/juick/xmpp/s2s')
-rw-r--r--src/main/java/com/juick/xmpp/s2s/ConnectionIn.java4
1 files changed, 2 insertions, 2 deletions
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");