Mercurial > prosody-modules
diff mod_smacks/mod_smacks.lua @ 811:e2d940d81613
mod_smacks: Only request ack for stanzas
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Mon, 10 Sep 2012 21:11:04 +0200 |
parents | 464ed063a8f2 |
children | 0095b74a3685 |
line wrap: on
line diff
--- a/mod_smacks/mod_smacks.lua Mon Sep 10 21:02:26 2012 +0200 +++ b/mod_smacks/mod_smacks.lua Mon Sep 10 21:11:04 2012 +0200 @@ -84,7 +84,7 @@ queue[#queue+1] = cached_stanza; end local ok, err = _send(stanza); - if ok and #queue > max_unacked_stanzas and not session.awaiting_ack then + if ok and #queue > max_unacked_stanzas and not session.awaiting_ack and attr and not attr.xmlns then session.awaiting_ack = true; return _send(st.stanza("r", sm_attr)); end