mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-22 06:12:05 +01:00
Slightly improve PacketParserUtils.parseSessionFeature()
This commit is contained in:
parent
49417d2e20
commit
0df7734efc
1 changed files with 5 additions and 3 deletions
|
@ -954,7 +954,10 @@ public class PacketParserUtils {
|
||||||
ParserUtils.assertAtStartTag(parser);
|
ParserUtils.assertAtStartTag(parser);
|
||||||
final int initialDepth = parser.getDepth();
|
final int initialDepth = parser.getDepth();
|
||||||
boolean optional = false;
|
boolean optional = false;
|
||||||
if (!parser.isEmptyElementTag()) {
|
if (parser.isEmptyElementTag()) {
|
||||||
|
return new Session.Feature(optional);
|
||||||
|
}
|
||||||
|
|
||||||
outerloop: while (true) {
|
outerloop: while (true) {
|
||||||
int event = parser.next();
|
int event = parser.next();
|
||||||
switch (event) {
|
switch (event) {
|
||||||
|
@ -972,9 +975,8 @@ public class PacketParserUtils {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
return new Session.Feature(optional);
|
|
||||||
|
|
||||||
|
return new Session.Feature(optional);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void addExtensionElement(Stanza packet, XmlPullParser parser)
|
public static void addExtensionElement(Stanza packet, XmlPullParser parser)
|
||||||
|
|
Loading…
Reference in a new issue