aboutsummaryrefslogtreecommitdiffstats
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
commit7c85c2cd9caea9517ab19b53db50b5ba79daa713 (patch)
treec061380cae15461411896eababa61b6f4d5ed67e
parentdf81676c778b630b931659f6cc5e366e39efa50f (diff)
downloadprosody-7c85c2cd9caea9517ab19b53db50b5ba79daa713.tar.gz
prosody-7c85c2cd9caea9517ab19b53db50b5ba79daa713.zip
util.async: runner: Fix check for new state to recognise transition to 'waiting'
-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