mod_compression: Don't succeed after indicating a failure.

This commit is contained in:
Waqas Hussain 2010-03-09 18:11:45 +05:00
parent 84ece3aca6
commit b01e95ae14

View file

@ -43,6 +43,7 @@ module:add_handler({"c2s_unauthed", "c2s"}, "compress", xmlns_compression_protoc
local error_st = st.stanza("failure", {xmlns=xmlns_compression_protocol}):tag("unsupported-method"); local error_st = st.stanza("failure", {xmlns=xmlns_compression_protocol}):tag("unsupported-method");
session.send(error_st); session.send(error_st);
session.log("warn", "Tried to establish another compression layer."); session.log("warn", "Tried to establish another compression layer.");
return;
end end
-- checking if the compression method is supported -- checking if the compression method is supported