From c916ce76ee89dca32e7e653dff1ade4732462efc Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Fri, 18 Nov 2022 16:18:47 +0100 Subject: mod_smacks: Only track resumable sessions Required due to track_session() having moved here --- plugins/mod_smacks.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'plugins') diff --git a/plugins/mod_smacks.lua b/plugins/mod_smacks.lua index ee537b0d..4657fc53 100644 --- a/plugins/mod_smacks.lua +++ b/plugins/mod_smacks.lua @@ -338,7 +338,9 @@ function do_enable(session, stanza) session.log("debug", "Enabling stream management"); session.smacks = stanza.attr.xmlns; - track_session(session, resume_token); + if resume_token then + track_session(session, resume_token); + end wrap_session(session, false); end; }; -- cgit v1.2.3