mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-12-24 03:27:59 +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);
|
||||
final int initialDepth = parser.getDepth();
|
||||
boolean optional = false;
|
||||
if (!parser.isEmptyElementTag()) {
|
||||
if (parser.isEmptyElementTag()) {
|
||||
return new Session.Feature(optional);
|
||||
}
|
||||
|
||||
outerloop: while (true) {
|
||||
int event = parser.next();
|
||||
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)
|
||||
|
|
Loading…
Reference in a new issue