mod_smacks: Fix to not wait for acks from before a resumption
authorKim Alvefur <zash@zash.se>
Fri, 17 Dec 2021 17:20:26 +0100
changeset 12071 97c377de8083
parent 12070 f07c8240a71d
child 12072 c3790ffdf467
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.
plugins/mod_smacks.lua
--- 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;