aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2023-01-19 20:59:28 +0100
committerKim Alvefur <zash@zash.se>2023-01-19 20:59:28 +0100
commit67b6440d9ba5c66fc1f7e51df911540c33177138 (patch)
tree9f59d8ebcaae82a600f6c4bd7b3213bfd114051c
parentc9fb0c2cab170724f8894bf036266d0366c99429 (diff)
downloadprosody-67b6440d9ba5c66fc1f7e51df911540c33177138.tar.gz
prosody-67b6440d9ba5c66fc1f7e51df911540c33177138.zip
mod_smacks: Log something when hibernation starts
Will hopefully save future confusion about sessions being destroyed when they are in fact not.
-rw-r--r--plugins/mod_smacks.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/mod_smacks.lua b/plugins/mod_smacks.lua
index 23ac2b51..a4ff0444 100644
--- a/plugins/mod_smacks.lua
+++ b/plugins/mod_smacks.lua
@@ -500,6 +500,7 @@ module:hook("pre-resource-unbind", function (event)
session.conn = nil;
conn:close();
end
+ session.log("debug", "Session going into hibernation (not being destroyed)")
module:fire_event("smacks-hibernation-start", { origin = session; queue = session.outgoing_stanza_queue:table() });
return true; -- Postpone destruction for now
end);