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 | d135b8fef982f97c0912444d0dc79688a2670322 (patch) | |
tree | c061380cae15461411896eababa61b6f4d5ed67e /util/async.lua | |
parent | 056eec9953383a5a5418e1cbf8fb89c07fb0e903 (diff) | |
download | prosody-d135b8fef982f97c0912444d0dc79688a2670322.tar.gz prosody-d135b8fef982f97c0912444d0dc79688a2670322.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 |