Software / code / prosody
Diff
plugins/mod_smacks.lua @ 12850:101c758428aa 0.12
mod_smacks: Log something when hibernation starts
Will hopefully save future confusion about sessions being destroyed when
they are in fact not.
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Thu, 19 Jan 2023 20:59:28 +0100 |
| parent | 12796:d7853bbc88ea |
| child | 12851:ffa75a9ce907 |
| child | 13021:14ca500f8621 |
line wrap: on
line diff
--- a/plugins/mod_smacks.lua Sat Jan 14 05:47:47 2023 +0100 +++ b/plugins/mod_smacks.lua Thu Jan 19 20:59:28 2023 +0100 @@ -500,6 +500,7 @@ 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);