From 17244cca2f0d9fa8d9cb22068244f79f224f8306 Mon Sep 17 00:00:00 2001 From: Frans de Jonge Date: Thu, 17 Oct 2019 23:31:30 +0200 Subject: [PATCH] [fix, plugin] Remove wakeup task on resume (#5502) Should fix #5495. --- plugins/autosuspend.koplugin/main.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/autosuspend.koplugin/main.lua b/plugins/autosuspend.koplugin/main.lua index 9e8f70db2..bf7e1384c 100644 --- a/plugins/autosuspend.koplugin/main.lua +++ b/plugins/autosuspend.koplugin/main.lua @@ -126,6 +126,9 @@ end function AutoSuspend:onResume() logger.dbg("AutoSuspend: onResume") + if self:_enabledShutdown() and Device.wakeup_mgr then + Device.wakeup_mgr:removeTask(nil, nil, UIManager.poweroff_action) + end self:_start() end