1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-06 04:31:29 +00:00

Simplify NSE timeout debug print

This commit is contained in:
dmiller
2022-01-04 18:10:43 +00:00
parent c3d54f1fac
commit 279be9917d

View File

@@ -1048,10 +1048,7 @@ local function run (threads_iter, hosts)
for co, thread in pairs(waiting) do
if thread:timed_out() then
waiting[co], all[co], num_threads = nil, nil, num_threads-1;
thread:d("%THREAD %stimed out", thread.host
and format("%s%s ", thread.host.ip,
thread.port and ":"..thread.port.number or "")
or "");
thread:d("%THREAD_AGAINST timed out")
thread:close(timeouts, "timed out");
end
end