milo: big oops
This commit is contained in:
@@ -44,7 +44,7 @@ function TaskRunner:run()
|
||||
if #self.tasks > 0 then
|
||||
local event = { }
|
||||
|
||||
while #self.tasks > 0 do
|
||||
while true do
|
||||
for n = #self.tasks, 1, -1 do
|
||||
local task = self.tasks[n]
|
||||
if task.filter == nil or task.filter == event[1] or event[1] == "terminate" then
|
||||
@@ -59,6 +59,9 @@ function TaskRunner:run()
|
||||
end
|
||||
end
|
||||
end
|
||||
if #self.tasks == 0 then
|
||||
break
|
||||
end
|
||||
event = { os.pullEventRaw() }
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user