PocketBook: Auto-standby plugin fix (#6612)

Fix "accessing undefined variable" in previous commit.
reviewable/pr6615/r1
ezdiy 4 years ago committed by GitHub
parent 724d3aa5ff
commit 8f8daa9dfb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -93,7 +93,7 @@ function AutoStandby:onInputEvent()
-- all standbys forbidden, always prevent -- all standbys forbidden, always prevent
self:prevent() self:prevent()
return return
elseif delay == 0 then elseif self.delay == 0 then
-- If delay is 0 now, just allow straight -- If delay is 0 now, just allow straight
self:allow() self:allow()
return return

Loading…
Cancel
Save