diff options
-rw-r--r-- | util/async.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/async.lua b/util/async.lua index e5f12f28..13ab73af 100644 --- a/util/async.lua +++ b/util/async.lua @@ -129,7 +129,7 @@ function runner_mt:run(input) local n, state, err = #q, self.state, nil; self.state = "running"; self:log("debug", "running main loop"); - while n > 0 and state == "ready" do + while n > 0 and state == "ready" and not err do local consumed; -- Loop through queue items, and attempt to run them for i = 1,n do |