aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2022-11-18 16:18:47 +0100
committerKim Alvefur <zash@zash.se>2022-11-18 16:18:47 +0100
commitc916ce76ee89dca32e7e653dff1ade4732462efc (patch)
treeed1634ffc545b0d574e00df45caf6d6899ceaab5 /plugins
parentae84717255cb196013c1b0fe0a625b2b443e7dc4 (diff)
downloadprosody-c916ce76ee89dca32e7e653dff1ade4732462efc.tar.gz
prosody-c916ce76ee89dca32e7e653dff1ade4732462efc.zip
mod_smacks: Only track resumable sessions
Required due to track_session() having moved here
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_smacks.lua4
1 files changed, 3 insertions, 1 deletions
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;
};