mirror of
https://github.com/nmap/nmap.git
synced 2026-08-03 22:29:06 +00:00
"Start" the worker thread so the host timeout accounting is correct.
Also add to num_threads for accounting.
This commit is contained in:
parent
65a8490539
commit
bbea3dc088
1 changed files with 2 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue