aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_smacks.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2021-12-16 16:02:01 +0100
committerKim Alvefur <zash@zash.se>2021-12-16 16:02:01 +0100
commitd73f3bee876e8e4551fcb16e7a2f0404d5857e46 (patch)
tree92bebb74a31d2e06f1f80c005011ff989ac27d4c /plugins/mod_smacks.lua
parent081647ea1ffaf7bf932e727c9311e765b642da5b (diff)
downloadprosody-d73f3bee876e8e4551fcb16e7a2f0404d5857e46.tar.gz
prosody-d73f3bee876e8e4551fcb16e7a2f0404d5857e46.zip
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
Diffstat (limited to 'plugins/mod_smacks.lua')
-rw-r--r--plugins/mod_smacks.lua1
1 files changed, 1 insertions, 0 deletions
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