PocketBook: Auto-standby plugin fix (#6612)

Fix "accessing undefined variable" in previous commit.
This commit is contained in:
ezdiy
2020-09-01 00:54:39 +02:00
committed by GitHub
parent 724d3aa5ff
commit 8f8daa9dfb

View File

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