fix: app.sleep_until max_ticks ignored
This commit is contained in:
parent
ad6a6666da
commit
686ace37f1
@ -50,6 +50,7 @@ if app then
|
|||||||
local ticks = 0
|
local ticks = 0
|
||||||
while ticks < max_ticks and not predicate() do
|
while ticks < max_ticks and not predicate() do
|
||||||
app.tick()
|
app.tick()
|
||||||
|
ticks = ticks + 1
|
||||||
end
|
end
|
||||||
if ticks == max_ticks then
|
if ticks == max_ticks then
|
||||||
error("max ticks exceed")
|
error("max ticks exceed")
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user