aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_smacks.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2021-12-19 14:59:27 +0100
committerKim Alvefur <zash@zash.se>2021-12-19 14:59:27 +0100
commit884cfdcaaf4386001cd05ab180e8da53d14c3433 (patch)
tree0e7799a925e647e93c7db9c95f206ac4af873270 /plugins/mod_smacks.lua
parentaf3aa001dca130216bb4d5472656e7c683d6e899 (diff)
downloadprosody-884cfdcaaf4386001cd05ab180e8da53d14c3433.tar.gz
prosody-884cfdcaaf4386001cd05ab180e8da53d14c3433.zip
mod_smacks: Avoid log noise when a non-smacks session is closed
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 ce5580cd..6ebf4e11 100644
--- a/plugins/mod_smacks.lua
+++ b/plugins/mod_smacks.lua
@@ -200,6 +200,7 @@ end
module:hook("pre-session-close", function(event)
local session = event.session;
+ if session.smacks == nil then return end
if session.resumption_token then
session.log("debug", "Revoking resumption token");
session_registry[jid.join(session.username, session.host, session.resumption_token)] = nil;