Changeset

1773:f47aa1d336b5

ComponentManager: Fixed: Default handler sent error replies on result stanzas.
author Waqas Hussain <waqas20@gmail.com>
date Fri, 11 Sep 2009 16:20:49 +0500
parents 1772:c0ba9cd6ee63
children 1774:53bd9c9f3103
files core/componentmanager.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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