Software /
code /
prosody
Comparison
plugins/mod_smacks.lua @ 12050:7b87a1747eb2
mod_smacks: Remove now unused variable [luacheck]
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 15 Dec 2021 12:09:30 +0100 |
parent | 12049:7dde1edaf067 |
child | 12051:c32ef09ab452 |
comparison
equal
deleted
inserted
replaced
12049:7dde1edaf067 | 12050:7b87a1747eb2 |
---|---|
379 origin:close{ condition = "undefined-condition"; text = "Client acknowledged more stanzas than sent by server"; }; | 379 origin:close{ condition = "undefined-condition"; text = "Client acknowledged more stanzas than sent by server"; }; |
380 return; | 380 return; |
381 end | 381 end |
382 | 382 |
383 for _=1,math_min(handled_stanza_count,#queue) do | 383 for _=1,math_min(handled_stanza_count,#queue) do |
384 local handled_stanza = t_remove(origin.outgoing_stanza_queue, 1); | 384 t_remove(origin.outgoing_stanza_queue, 1); |
385 end | 385 end |
386 | 386 |
387 origin.log("debug", "#queue = %d", #queue); | 387 origin.log("debug", "#queue = %d", #queue); |
388 origin.last_acknowledged_stanza = origin.last_acknowledged_stanza + handled_stanza_count; | 388 origin.last_acknowledged_stanza = origin.last_acknowledged_stanza + handled_stanza_count; |
389 request_ack_now_if_needed(origin, false, "handle_a", nil) | 389 request_ack_now_if_needed(origin, false, "handle_a", nil) |