"Start" the worker thread so the host timeout accounting is correct.

Also add to num_threads for accounting.
This commit is contained in:
batrick 2012-07-14 22:32:37 +00:00
parent 65a8490539
commit bbea3dc088

View file

@ -821,6 +821,8 @@ local function run (threads_iter, hosts)
};
setmetatable(thread, thread_mt);
total, all[co], pending[co] = total+1, thread, thread;
num_threads = num_threads + 1;
thread:start(timeouts);
local function info ()
return status(co), rawget(thread, "error");
end