aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2013-08-12 11:50:27 +0100
committerMatthew Wild <mwild1@gmail.com>2013-08-12 11:50:27 +0100
commitd135b8fef982f97c0912444d0dc79688a2670322 (patch)
treec061380cae15461411896eababa61b6f4d5ed67e /util
parent056eec9953383a5a5418e1cbf8fb89c07fb0e903 (diff)
downloadprosody-d135b8fef982f97c0912444d0dc79688a2670322.tar.gz
prosody-d135b8fef982f97c0912444d0dc79688a2670322.zip
util.async: runner: Fix check for new state to recognise transition to 'waiting'
Diffstat (limited to 'util')
-rw-r--r--util/async.lua2
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