Changeset

12800:06ba2f8cee47

mod_smacks: Only track resumable sessions Required due to track_session() having moved here
author Kim Alvefur <zash@zash.se>
date Fri, 18 Nov 2022 16:18:47 +0100
parents 12795:87424cbedc55
children 12802:4a8740e01813
files plugins/mod_smacks.lua
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/mod_smacks.lua	Fri Dec 02 20:32:36 2022 +0000
+++ b/plugins/mod_smacks.lua	Fri Nov 18 16:18:47 2022 +0100
@@ -338,7 +338,9 @@
 			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;
 	};