From 8f8daa9dfb0344cfd3e4a5c1ce8a641981faefe2 Mon Sep 17 00:00:00 2001 From: ezdiy Date: Tue, 1 Sep 2020 00:54:39 +0200 Subject: [PATCH] PocketBook: Auto-standby plugin fix (#6612) Fix "accessing undefined variable" in previous commit. --- plugins/autostandby.koplugin/main.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/autostandby.koplugin/main.lua b/plugins/autostandby.koplugin/main.lua index c0b62d8f2..15fe3e391 100644 --- a/plugins/autostandby.koplugin/main.lua +++ b/plugins/autostandby.koplugin/main.lua @@ -93,7 +93,7 @@ function AutoStandby:onInputEvent() -- all standbys forbidden, always prevent self:prevent() return - elseif delay == 0 then + elseif self.delay == 0 then -- If delay is 0 now, just allow straight self:allow() return