diff options
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/mod_smacks.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/mod_smacks.lua b/plugins/mod_smacks.lua index 7a0b608b..2dc8f1ff 100644 --- a/plugins/mod_smacks.lua +++ b/plugins/mod_smacks.lua @@ -436,6 +436,10 @@ module:hook("pre-resource-unbind", function (event) if session.destroyed then session.log("debug", "The session has already been destroyed"); return + elseif not session.resumption_token then + -- This should normally not happen, the watchdog should be canceled from session:close() + session.log("debug", "The session has already been resumed or replaced"); + return end session.log("debug", "Destroying session for hibernating too long"); |