From 7c85c2cd9caea9517ab19b53db50b5ba79daa713 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Mon, 12 Aug 2013 11:50:27 +0100 Subject: util.async: runner: Fix check for new state to recognise transition to 'waiting' --- util/async.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'util/async.lua') 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 -- cgit v1.2.3