From 99d071b9f8d7d0e12c80ebe9baed4368411d6103 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Fri, 16 Mar 2018 17:12:36 +0000 Subject: util.async: Bugfix, don't continue main loop while there is a pending error --- util/async.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3