From 884cfdcaaf4386001cd05ab180e8da53d14c3433 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Sun, 19 Dec 2021 14:59:27 +0100 Subject: mod_smacks: Avoid log noise when a non-smacks session is closed --- plugins/mod_smacks.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'plugins') 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; -- cgit v1.2.3