mirror of
https://github.com/nmap/nmap.git
synced 2025-12-25 08:59:01 +00:00
fixed deadlock when calling stop and the thread was already dead
This commit is contained in:
@@ -818,6 +818,9 @@ Crawler = {
|
||||
local condvar = nmap.condvar(self.response_queue)
|
||||
self.quit = true
|
||||
condvar "signal"
|
||||
if ( coroutine.status(self.thread) == "dead" ) then
|
||||
return
|
||||
end
|
||||
condvar "wait"
|
||||
end
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user