From 9d1d5d021bd72d872b8b4c5abd3cf3548933f930 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Sat, 17 Mar 2018 14:54:48 +0000 Subject: util.async: Behaviour change: continue to process queued items after errors --- util/async.lua | 3 +++ 1 file changed, 3 insertions(+) (limited to 'util/async.lua') diff --git a/util/async.lua b/util/async.lua index 0dde1f32..8756c81a 100644 --- a/util/async.lua +++ b/util/async.lua @@ -180,6 +180,9 @@ function runner_mt:run(input) local handler = self.watchers[state]; if handler then handler(self, err); end end + if n > 0 then + return self:run(); + end return true, state, n; end -- cgit v1.2.3