From d73f3bee876e8e4551fcb16e7a2f0404d5857e46 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Thu, 16 Dec 2021 16:02:01 +0100 Subject: mod_smacks: Stop stanzas from being queued on hibernation timeout This overloads that flag a bit, but it has the intended effect of stopping outgoing_stanza_filter() from queueing stanzas. Fixes a traceback because of the queue having been removed somewhere around here, since it is no longer needed. Thanks Martin for reporting --- plugins/mod_smacks.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/mod_smacks.lua b/plugins/mod_smacks.lua index 960febac..246d1a53 100644 --- a/plugins/mod_smacks.lua +++ b/plugins/mod_smacks.lua @@ -442,6 +442,7 @@ module:hook("pre-resource-unbind", function (event) session_registry[jid.join(session.username, session.host, session.resumption_token)] = nil; old_session_registry:set(session.username, session.resumption_token, { h = session.handled_stanza_count }); session.resumption_token = nil; + session.resending_unacked = true; -- stop outgoing_stanza_filter from re-queueing anything anymore sessionmanager.destroy_session(session, "Hibernating too long"); end); if session.conn then -- cgit v1.2.3