diff options
author | Kim Alvefur <zash@zash.se> | 2016-11-19 01:11:53 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2016-11-19 01:11:53 +0100 |
commit | cf352af83d3f650160246298f5adf20ff6904af3 (patch) | |
tree | 47197b543b368e470ee32f90c09e5b5d4072bb84 /util | |
parent | d8aafa0efe7e6106b663c4f76b4e8cde33fe8944 (diff) | |
download | prosody-cf352af83d3f650160246298f5adf20ff6904af3.tar.gz prosody-cf352af83d3f650160246298f5adf20ff6904af3.zip |
util.async: Rename variable to avoid name clash [luacheck]
Diffstat (limited to 'util')
-rw-r--r-- | util/async.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/util/async.lua b/util/async.lua index 76da45fa..367a75b5 100644 --- a/util/async.lua +++ b/util/async.lua @@ -126,8 +126,8 @@ function runner_mt:run(input) local consumed; -- Loop through queue items, and attempt to run them for i = 1,n do - local input = q[i]; - local ok, new_state = coroutine.resume(thread, input); + local queued_input = q[i]; + local ok, new_state = coroutine.resume(thread, queued_input); if not ok then -- There was an error running the coroutine, save the error, mark runner as ready to begin again consumed, state, err = i, "ready", debug.traceback(thread, new_state); |