Software /
code /
prosody
Changeset
2292:9c5941198719
mod_compression: Declaring the de-/compression pipes as local.
author | Tobias Markmann <tm@ayena.de> |
---|---|
date | Tue, 01 Dec 2009 21:04:02 +0100 |
parents | 2291:c6bed51c6733 |
children | 2293:abd28ed5d8b0 |
files | plugins/mod_compression.lua |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_compression.lua Tue Dec 01 20:59:42 2009 +0100 +++ b/plugins/mod_compression.lua Tue Dec 01 21:04:02 2009 +0100 @@ -139,10 +139,10 @@ function(session ,stanza) session.log("debug", "Activating compression...") -- create deflate and inflate streams - deflate_stream = get_deflate_stream(session); + local deflate_stream = get_deflate_stream(session); if not deflate_stream then return end - inflate_stream = get_inflate_stream(session); + local inflate_stream = get_inflate_stream(session); if not inflate_stream then return end -- setup compression for session.w @@ -180,10 +180,10 @@ session.log("info", method.." compression selected."); -- create deflate and inflate streams - deflate_stream = get_deflate_stream(session); + local deflate_stream = get_deflate_stream(session); if not deflate_stream then return end - inflate_stream = get_inflate_stream(session); + local inflate_stream = get_inflate_stream(session); if not inflate_stream then return end (session.sends2s or session.send)(st.stanza("compressed", {xmlns=xmlns_compression_protocol}));