# HG changeset patch # User Kim Alvefur # Date 1639831737 -3600 # Node ID ef0f174488af40e4ae24f25716dc6a0b83c198a2 # Parent 85c8fcb4192e770324ca45cd52dc85d696a37e4d 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. diff -r 85c8fcb4192e -r ef0f174488af plugins/mod_smacks.lua --- 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()