# HG changeset patch # User Kim Alvefur # Date 1479514313 -3600 # Node ID 20a69ef5570c612f47b2e27845d04aa47cbe0fa5 # Parent 488fddf88ffd17addd258e02ff0c069499e3366b util.async: Rename variable to avoid name clash [luacheck] diff -r 488fddf88ffd -r 20a69ef5570c util/async.lua --- a/util/async.lua Sat Nov 19 01:05:36 2016 +0100 +++ b/util/async.lua Sat Nov 19 01:11:53 2016 +0100 @@ -126,8 +126,8 @@ 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);