Fixed code hanging due to thread.chain not processing varargs properly

This commit is contained in:
Ryan Ward 2022-11-20 13:19:52 -05:00
parent 019855d81f
commit 35a86a6cda

View File

@ -1123,7 +1123,7 @@ local function conn_test(conn)
end end
function thread.chain(...) function thread.chain(...)
local args = select("#") local args = select("#",...)
for i=1,args do for i=1,args do
thread.hold(select(i,...)) thread.hold(select(i,...))
end end