Diff

plugins/mod_smacks.lua @ 12067:97c377de8083

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.
author Kim Alvefur <zash@zash.se>
date Fri, 17 Dec 2021 17:20:26 +0100
parent 12066:f07c8240a71d
child 12068:c3790ffdf467
line wrap: on
line diff
--- 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;