[fix, plugin] Remove wakeup task on resume (#5502)

Should fix #5495.
This commit is contained in:
Frans de Jonge
2019-10-17 23:31:30 +02:00
committed by GitHub
parent 7de022a617
commit 17244cca2f

View File

@@ -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