aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2022-06-13 19:17:36 +0200
committerKim Alvefur <zash@zash.se>2022-06-13 19:17:36 +0200
commit32eb31a9a13a75b0c205ff16866c9cc92cd769d1 (patch)
treef9b5be8fc432f573e9cc3eb1b2121fa65f938b88 /plugins
parent76da7a7387d879f01bbefbc1efb420c437b1eb85 (diff)
parentbfe2a924f83627053681668fb49f98520906c5bb (diff)
downloadprosody-32eb31a9a13a75b0c205ff16866c9cc92cd769d1.tar.gz
prosody-32eb31a9a13a75b0c205ff16866c9cc92cd769d1.zip
Merge 0.12->trunk
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_smacks.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_smacks.lua b/plugins/mod_smacks.lua
index 3baf30c2..e2bbff9c 100644
--- a/plugins/mod_smacks.lua
+++ b/plugins/mod_smacks.lua
@@ -173,9 +173,9 @@ end
local function request_ack(session, reason)
local queue = session.outgoing_stanza_queue;
session.log("debug", "Sending <r> from %s - #queue=%d", reason, queue:count_unacked());
+ session.awaiting_ack = true;
(session.sends2s or session.send)(st.stanza("r", { xmlns = session.smacks }))
if session.destroyed then return end -- sending something can trigger destruction
- session.awaiting_ack = true;
-- expected_h could be lower than this expression e.g. more stanzas added to the queue meanwhile)
session.last_requested_h = queue:count_acked() + queue:count_unacked();
if not session.delayed_ack_timer then