aboutsummaryrefslogtreecommitdiffstats
path: root/util/async.lua
diff options
context:
space:
mode:
Diffstat (limited to 'util/async.lua')
-rw-r--r--util/async.lua3
1 files changed, 3 insertions, 0 deletions
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