mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-26 08:12:05 +01:00
Correctly serizlize error sub-packet.
git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@2015 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
parent
d7d534702a
commit
3168514591
1 changed files with 1 additions and 1 deletions
|
@ -106,12 +106,12 @@ public abstract class IQ extends Packet {
|
||||||
if (queryXML != null) {
|
if (queryXML != null) {
|
||||||
buf.append(queryXML);
|
buf.append(queryXML);
|
||||||
}
|
}
|
||||||
buf.append("</iq>");
|
|
||||||
// Add the error sub-packet, if there is one.
|
// Add the error sub-packet, if there is one.
|
||||||
XMPPError error = getError();
|
XMPPError error = getError();
|
||||||
if (error != null) {
|
if (error != null) {
|
||||||
buf.append(error.toXML());
|
buf.append(error.toXML());
|
||||||
}
|
}
|
||||||
|
buf.append("</iq>");
|
||||||
return buf.toString();
|
return buf.toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue