diff options
author | Matthew Wild <mwild1@gmail.com> | 2013-08-12 11:50:27 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2013-08-12 11:50:27 +0100 |
commit | 7c85c2cd9caea9517ab19b53db50b5ba79daa713 (patch) | |
tree | c061380cae15461411896eababa61b6f4d5ed67e /util/async.lua | |
parent | df81676c778b630b931659f6cc5e366e39efa50f (diff) | |
download | prosody-7c85c2cd9caea9517ab19b53db50b5ba79daa713.tar.gz prosody-7c85c2cd9caea9517ab19b53db50b5ba79daa713.zip |
util.async: runner: Fix check for new state to recognise transition to 'waiting'
Diffstat (limited to 'util/async.lua')
-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 59d3c6f2..afbaba5c 100644 --- a/util/async.lua +++ b/util/async.lua @@ -85,7 +85,7 @@ function runner_mt:run(input) consumed, state, err = i, "ready", debug.traceback(thread, new_state); self.thread = nil; break; - elseif state == "wait" then + elseif new_state == "wait" then consumed, state = i, "waiting"; break; end |