mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-26 00:02:06 +01:00
Fix StreamManagement.Failed.toXML()
Note that this method is currently not used by Smack, as XMPP clients usually do not emit that Nonza.
This commit is contained in:
parent
d275d9a7da
commit
270e378287
1 changed files with 2 additions and 1 deletions
|
@ -225,10 +225,11 @@ public class StreamManagement {
|
||||||
if (condition == null && textElements.isEmpty()) {
|
if (condition == null && textElements.isEmpty()) {
|
||||||
xml.closeEmptyElement();
|
xml.closeEmptyElement();
|
||||||
} else {
|
} else {
|
||||||
xml.rightAngleBracket();
|
|
||||||
if (condition != null) {
|
if (condition != null) {
|
||||||
|
xml.rightAngleBracket();
|
||||||
xml.append(condition.toString());
|
xml.append(condition.toString());
|
||||||
xml.xmlnsAttribute(StanzaError.NAMESPACE);
|
xml.xmlnsAttribute(StanzaError.NAMESPACE);
|
||||||
|
xml.closeEmptyElement();
|
||||||
}
|
}
|
||||||
xml.append(textElements);
|
xml.append(textElements);
|
||||||
xml.closeElement(ELEMENT);
|
xml.closeElement(ELEMENT);
|
||||||
|
|
Loading…
Reference in a new issue