aboutsummaryrefslogtreecommitdiffstats
path: root/util/async.lua
diff options
context:
space:
mode:
Diffstat (limited to 'util/async.lua')
-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