diff options
Diffstat (limited to 'source/QXmppStream.cpp')
| -rw-r--r-- | source/QXmppStream.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/QXmppStream.cpp b/source/QXmppStream.cpp index 091a0feb..91b4c1cc 100644 --- a/source/QXmppStream.cpp +++ b/source/QXmppStream.cpp @@ -677,9 +677,11 @@ void QXmppStream::parser(const QByteArray& data) iq.setFrom(to); sendPacket(iq); } - else // didn't understant the iq...reply with error + else { - if(type != "result") // but not incase of result iqs + // if we didn't understant the iq, reply with error + // except for "result" and "error" iqs + if (type != "result" && type != "error") { QXmppIq iq(QXmppIq::Error); iq.setId(id); |
