plugins/mod_compression.lua

changeset 2884
6807f5fa0eb4
parent 2883
adbca5af8536
child 2885
ae72c0dd6f1f
--- 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

mercurial