Software /
code /
prosody
Changeset
8603:dc5f3302a642
util.async: Bugfix, don't continue main loop while there is a pending error
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Fri, 16 Mar 2018 17:12:36 +0000 |
parents | 8602:9901deadc068 |
children | 8604:1c8c7fd259c8 |
files | util/async.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/util/async.lua Fri Mar 16 17:12:09 2018 +0000 +++ b/util/async.lua Fri Mar 16 17:12:36 2018 +0000 @@ -129,7 +129,7 @@ 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