fix: app.sleep_until max_ticks ignored

This commit is contained in:
MihailRis
2024-12-25 06:10:38 +03:00
parent ad6a6666da
commit 686ace37f1
+1
View File
@@ -50,6 +50,7 @@ if app then
local ticks = 0
while ticks < max_ticks and not predicate() do
app.tick()
ticks = ticks + 1
end
if ticks == max_ticks then
error("max ticks exceed")