Commit 6ddb08ec authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gato

Return IQ error internal_server_error when an exception occurs while...

Return IQ error internal_server_error when an exception occurs while processing an IQ packet. JM-1125

git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@9172 b35dd754-fafc-0310-a699-88a17e54d16e
parent 801833fe
......@@ -319,7 +319,9 @@ public class IQRouter extends BasicModule {
Log.error(LocaleUtils.getLocalizedString("admin.error.routing"), e);
Session session = sessionManager.getSession(packet.getFrom());
if (session != null) {
session.close();
IQ reply = IQ.createResultIQ(packet);
reply.setError(PacketError.Condition.internal_server_error);
session.process(reply);
}
}
}
......
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