mirror of
https://github.com/nmap/nmap.git
synced 2025-12-06 20:51:30 +00:00
Simplify NSE timeout debug print
This commit is contained in:
@@ -1048,10 +1048,7 @@ local function run (threads_iter, hosts)
|
|||||||
for co, thread in pairs(waiting) do
|
for co, thread in pairs(waiting) do
|
||||||
if thread:timed_out() then
|
if thread:timed_out() then
|
||||||
waiting[co], all[co], num_threads = nil, nil, num_threads-1;
|
waiting[co], all[co], num_threads = nil, nil, num_threads-1;
|
||||||
thread:d("%THREAD %stimed out", thread.host
|
thread:d("%THREAD_AGAINST timed out")
|
||||||
and format("%s%s ", thread.host.ip,
|
|
||||||
thread.port and ":"..thread.port.number or "")
|
|
||||||
or "");
|
|
||||||
thread:close(timeouts, "timed out");
|
thread:close(timeouts, "timed out");
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user