# HG changeset patch # User Waqas Hussain # Date 1252668049 -18000 # Node ID f47aa1d336b5d607822f7abfd549e28968d7c4f3 # Parent c0ba9cd6ee633a1cfe0d049d94e413e06578ff29 ComponentManager: Fixed: Default handler sent error replies on result stanzas. diff -r c0ba9cd6ee63 -r f47aa1d336b5 core/componentmanager.lua --- 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