Software /
code /
verse
Diff
plugins/smacks.lua @ 445:b119dc4d8bc2
plugins.smacks: Don't warn about zero stanzas acked
It's only if the count somehow goes backwards that something is really
wrong. An ack for zero stanzas is fine and we don't need to do anything.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 10 Jun 2021 11:58:23 +0200 |
parent | 408:635cbd979d7b |
child | 446:62fb547bd31a |
line wrap: on
line diff
--- a/plugins/smacks.lua Sun Jun 06 16:43:36 2021 +0200 +++ b/plugins/smacks.lua Thu Jun 10 11:58:23 2021 +0200 @@ -80,7 +80,7 @@ end stream:debug("Received ack: New ack: "..new_ack.." Last ack: "..last_ack.." Unacked stanzas now: "..#outgoing_queue.." (was "..old_unacked..")"); last_ack = new_ack; - else + elseif new_ack < last_ack then stream:warn("Received bad ack for "..new_ack.." when last ack was "..last_ack); end elseif stanza.name == "enabled" then