Software / code / prosody
Changeset
2884:6807f5fa0eb4
mod_compression: Don't succeed after indicating a failure.
| author | Waqas Hussain <waqas20@gmail.com> |
|---|---|
| date | Tue, 09 Mar 2010 18:11:45 +0500 |
| parents | 2883:adbca5af8536 |
| children | 2885:ae72c0dd6f1f |
| files | plugins/mod_compression.lua |
| diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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