diff --git a/nselib/httpspider.lua b/nselib/httpspider.lua index 1657a0a17..b0880609a 100644 --- a/nselib/httpspider.lua +++ b/nselib/httpspider.lua @@ -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 }