Changeset

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
parents 12842:3edd39c55a8a
children 12851:ffa75a9ce907 12857:cc86d77481fc
files plugins/mod_smacks.lua
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
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);