Software /
code /
prosody
Diff
plugins/mod_smacks.lua @ 12075:9f4d88f54a54
mod_smacks: Avoid log noise when a non-smacks session is closed
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 19 Dec 2021 14:59:27 +0100 |
parent | 12074:b892f5489d79 |
child | 12076:ad1fe36eaae7 |
line wrap: on
line diff
--- a/plugins/mod_smacks.lua Sat Dec 18 15:45:06 2021 +0100 +++ b/plugins/mod_smacks.lua Sun Dec 19 14:59:27 2021 +0100 @@ -200,6 +200,7 @@ 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;