aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2021-12-12 18:38:40 +0100
committerKim Alvefur <zash@zash.se>2021-12-12 18:38:40 +0100
commit283042d7c3ae7e7b25a51e71be736c84a71a0bd7 (patch)
treed054fd86a9dcae487e8a808de265f5da70f6d642
parent725bb0cb15fd684ea82689c88c987177b37a8f0f (diff)
downloadprosody-283042d7c3ae7e7b25a51e71be736c84a71a0bd7.tar.gz
prosody-283042d7c3ae7e7b25a51e71be736c84a71a0bd7.zip
mod_smacks: Include reason for destroying session on hibernation timeout
To aid in debugging
-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 bb27b05f..8f231474 100644
--- a/plugins/mod_smacks.lua
+++ b/plugins/mod_smacks.lua
@@ -498,7 +498,7 @@ module:hook("pre-resource-unbind", function (event)
h = session.handled_stanza_count,
});
session.resumption_token = nil;
- sessionmanager.destroy_session(session);
+ sessionmanager.destroy_session(session, "Hibernating too long");
else
session.log("debug", "Session resumed before hibernation timeout, all is well")
end