diff options
author | Matthew Wild <mwild1@gmail.com> | 2018-03-16 17:12:36 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2018-03-16 17:12:36 +0000 |
commit | 09aa4a96987228559d554273358d4ac8b7fa5326 (patch) | |
tree | e9207d1879dc19a4a8020f17975d2dbe3357ed0e /util | |
parent | fd381c6b8d0788dd5cf7506526caf530d15cc028 (diff) | |
download | prosody-09aa4a96987228559d554273358d4ac8b7fa5326.tar.gz prosody-09aa4a96987228559d554273358d4ac8b7fa5326.zip |
util.async: Bugfix, don't continue main loop while there is a pending error
Diffstat (limited to 'util')
-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 |