diff options
Diffstat (limited to 'plugins/mod_smacks.lua')
-rw-r--r-- | plugins/mod_smacks.lua | 2 |
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; |