milo: big oops

This commit is contained in:
kepler155c@gmail.com
2019-04-22 16:12:36 -04:00
parent 9cf630000b
commit b3a8432f86

View File

@@ -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