Software /
code /
prosody-modules
Changeset
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 | 2086:de6b95d5e01b |
children | 2088:7a29d8e3275b |
files | mod_smacks/mod_smacks.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
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;