Fri, 11 Sep 2009 16:20:49 +0500
ComponentManager: Fixed: Default handler sent error replies on result stanzas.
core/componentmanager.lua | file | annotate | diff | comparison | revisions |
--- a/core/componentmanager.lua Fri Sep 11 16:17:18 2009 +0500 +++ b/core/componentmanager.lua Fri Sep 11 16:20:49 2009 +0500 @@ -29,7 +29,7 @@ local function default_component_handler(origin, stanza) log("warn", "Stanza being handled by default component, bouncing error"); - if stanza.attr.type ~= "error" then + if stanza.attr.type ~= "error" and stanza.attr.type ~= "result" then core_route_stanza(nil, st.error_reply(stanza, "wait", "service-unavailable", "Component unavailable")); end end