1
0
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:
patrik
2012-04-07 09:10:24 +00:00
parent 23bf107e83
commit 49078b178f

View File

@@ -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
}