diff options
author | Kim Alvefur <zash@zash.se> | 2021-12-17 17:20:26 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2021-12-17 17:20:26 +0100 |
commit | 11e5efc23f007a8585a54eba0ccc3a8126010c68 (patch) | |
tree | f99734b6a81b96a3100eb298b6031131539be95d /plugins | |
parent | 4cde54475b8b9d2b6a2ccbec8ffa5b142e746e57 (diff) | |
download | prosody-11e5efc23f007a8585a54eba0ccc3a8126010c68.tar.gz prosody-11e5efc23f007a8585a54eba0ccc3a8126010c68.zip |
mod_smacks: Fix to not wait for acks from before a resumption
Otherwise it can get stuck waiting indefinitely for an ack that made it
notice the connection was stale.
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/mod_smacks.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/mod_smacks.lua b/plugins/mod_smacks.lua index c750485f..f2335cbc 100644 --- a/plugins/mod_smacks.lua +++ b/plugins/mod_smacks.lua @@ -590,6 +590,7 @@ function handle_resume(session, stanza, xmlns_sm) return false; end module:fire_event("smacks-hibernation-end", {origin = session, resumed = original_session, queue = queue:table()}); + original_session.awaiting_ack = nil; -- Don't wait for acks from before the resumption request_ack_if_needed(original_session, true, "handle_resume", nil); end return true; |