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.
--- a/plugins/mod_smacks.lua Fri Dec 17 16:29:17 2021 +0100
+++ b/plugins/mod_smacks.lua Fri Dec 17 17:20:26 2021 +0100
@@ -590,6 +590,7 @@
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;