ComponentManager: Fixed: Default handler sent error replies on result stanzas.

Fri, 11 Sep 2009 16:20:49 +0500

author
Waqas Hussain <waqas20@gmail.com>
date
Fri, 11 Sep 2009 16:20:49 +0500
changeset 1773
f47aa1d336b5
parent 1772
c0ba9cd6ee63
child 1774
53bd9c9f3103

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

mercurial