aboutsummaryrefslogtreecommitdiffstats
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
commit1ab7b00c72112d8dcfa12c1de1d38047c346984e (patch)
tree47197b543b368e470ee32f90c09e5b5d4072bb84
parentda42ca2167a2051d2fa85400be3ce0f516909704 (diff)
downloadprosody-1ab7b00c72112d8dcfa12c1de1d38047c346984e.tar.gz
prosody-1ab7b00c72112d8dcfa12c1de1d38047c346984e.zip
util.async: Rename variable to avoid name clash [luacheck]
-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);