aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_smacks.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2024-11-19 00:57:24 +0100
committerKim Alvefur <zash@zash.se>2024-11-19 00:57:24 +0100
commit19429a5e7de3fb70b50c56b060b97a6ff4cc5e30 (patch)
treead20483d80925a07e3fedfff6d27cb12bf086f60 /plugins/mod_smacks.lua
parentfff5a91e376d1cd7eddb7be6d18920fa2efaaa4d (diff)
downloadprosody-19429a5e7de3fb70b50c56b060b97a6ff4cc5e30.tar.gz
prosody-19429a5e7de3fb70b50c56b060b97a6ff4cc5e30.zip
mod_smacks: Fix previous commit for case of no session found
Diffstat (limited to 'plugins/mod_smacks.lua')
-rw-r--r--plugins/mod_smacks.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_smacks.lua b/plugins/mod_smacks.lua
index 62cf9dd1..2b131031 100644
--- a/plugins/mod_smacks.lua
+++ b/plugins/mod_smacks.lua
@@ -587,7 +587,7 @@ function do_resume(session, stanza)
local id = stanza.attr.previd;
local original_session = session_registry[registry_key(session, id)];
- if original_session.destroyed then
+ if original_session and original_session.destroyed then
original_session.log("error", "Tried to resume a destroyed session. This should not happen! %s", debug.traceback());
session_registry[registry_key(session, id)] = nil;
original_session = nil;