# HG changeset patch # User Kim Alvefur # Date 1458130441 -3600 # Node ID e48dbb64040894ad3ea59e706ad6870b9586e364 # Parent de6b95d5e01b357adb1595f2b643d9b1d6412fab mod_smacks: Drop stanzas instead of turning them into the empty string diff -r de6b95d5e01b -r e48dbb640408 mod_smacks/mod_smacks.lua --- 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;