Mercurial > prosody-modules
diff mod_smacks/mod_smacks.lua @ 2087:e48dbb640408
mod_smacks: Drop stanzas instead of turning them into the empty string
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 16 Mar 2016 13:14:01 +0100 |
parents | 3683eb95bc1a |
children | 7a29d8e3275b |
line wrap: on
line diff
--- a/mod_smacks/mod_smacks.lua Wed Mar 16 11:09:46 2016 +0000 +++ b/mod_smacks/mod_smacks.lua Wed Mar 16 13:14:01 2016 +0100 @@ -85,7 +85,7 @@ session.log("debug", "#queue = %d", #queue); if session.hibernating then session.log("debug", "hibernating, stanza queued"); - return ""; -- Hack to make session.send() not return nil + return nil; end if #queue > max_unacked_stanzas and not session.awaiting_ack then session.awaiting_ack = true;