aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2016-11-19 01:11:53 +0100
committerKim Alvefur <zash@zash.se>2016-11-19 01:11:53 +0100
commitcf352af83d3f650160246298f5adf20ff6904af3 (patch)
tree47197b543b368e470ee32f90c09e5b5d4072bb84 /util
parentd8aafa0efe7e6106b663c4f76b4e8cde33fe8944 (diff)
downloadprosody-cf352af83d3f650160246298f5adf20ff6904af3.tar.gz
prosody-cf352af83d3f650160246298f5adf20ff6904af3.zip
util.async: Rename variable to avoid name clash [luacheck]
Diffstat (limited to 'util')
-rw-r--r--util/async.lua4
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);