Changeset

12072:ef0f174488af

mod_smacks: Fix duplicate sleep behavior when replacing a session Fixes that an extra watchdog was set, leaking the previous one, which went on to do behave as if the session times out.
author Kim Alvefur <zash@zash.se>
date Sat, 18 Dec 2021 13:48:57 +0100
parents 12071:85c8fcb4192e
children 12073:4cbe7979a92a
files plugins/mod_smacks.lua
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/mod_smacks.lua	Sat Dec 18 13:43:57 2021 +0100
+++ b/plugins/mod_smacks.lua	Sat Dec 18 13:48:57 2021 +0100
@@ -419,6 +419,7 @@
 		end
 		return
 	end
+	if session.hibernating then return end
 
 	session.hibernating = os_time();
 	session.hibernating_watchdog = watchdog.new(resume_timeout, function()