# HG changeset patch # User Waqas Hussain # Date 1268140305 -18000 # Node ID 6807f5fa0eb48fb20cb08c95fa9f2d90da170803 # Parent adbca5af8536849342ceb2102eea9f06cfc4b318 mod_compression: Don't succeed after indicating a failure. diff -r adbca5af8536 -r 6807f5fa0eb4 plugins/mod_compression.lua --- a/plugins/mod_compression.lua Tue Mar 09 17:52:18 2010 +0500 +++ b/plugins/mod_compression.lua Tue Mar 09 18:11:45 2010 +0500 @@ -43,6 +43,7 @@ local error_st = st.stanza("failure", {xmlns=xmlns_compression_protocol}):tag("unsupported-method"); session.send(error_st); session.log("warn", "Tried to establish another compression layer."); + return; end -- checking if the compression method is supported