mirror of
https://github.com/nmap/nmap.git
synced 2026-05-13 16:57:06 +00:00
fixed deadlock when calling stop and the thread was already dead
This commit is contained in:
parent
23bf107e83
commit
49078b178f
1 changed files with 3 additions and 0 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue