From a4b327e6e9794dc4e7bc10a282367f63c4907b19 Mon Sep 17 00:00:00 2001 From: NiLuJe Date: Sat, 21 May 2022 00:40:21 +0200 Subject: [PATCH] Simplify --- frontend/ui/uimanager.lua | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/frontend/ui/uimanager.lua b/frontend/ui/uimanager.lua index 00c33cba5..4366a9a67 100644 --- a/frontend/ui/uimanager.lua +++ b/frontend/ui/uimanager.lua @@ -1156,11 +1156,7 @@ function UIManager:_checkTasks() -- Tasks due for execution might themselves schedule more tasks (that might also be immediately due for execution ;)). -- Flipping this switch ensures we'll consume all such tasks *before* yielding to input polling. self._task_queue_dirty = false - while true do - if not self._task_queue[1] then - -- Nothing to do! - break - end + while self._task_queue[1] do local task_time = self._task_queue[1].time if task_time <= self._now then -- Pop the upcoming task, as it is due for execution...