Commit 689952d1 authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gaston

Fixed error when answering "service_unavailable" to an IQ result packet.


git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/trunk@1470 b35dd754-fafc-0310-a699-88a17e54d16e
parent dd133f1a
......@@ -243,7 +243,7 @@ public class IQRouter extends BasicModule {
}
// If a route to the target address was not found then try to answer a
// service_unavailable error code to the sender of the IQ packet
if (!handlerFound) {
if (!handlerFound && IQ.Type.result != packet.getType()) {
IQ reply = IQ.createResultIQ(packet);
reply.setChildElement(packet.getChildElement().createCopy());
reply.setError(PacketError.Condition.service_unavailable);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment