aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;
};