forked from p15670423/monkey
Agent: Remove redundant check for stop in Exploiter
This commit is contained in:
parent
fc767e2074
commit
f1b55b70c2
|
@ -59,10 +59,7 @@ class Exploiter:
|
|||
victim_host = hosts_to_exploit.get(timeout=QUEUE_TIMEOUT)
|
||||
self._run_all_exploiters(exploiters_to_run, victim_host, results_callback, stop)
|
||||
except queue.Empty:
|
||||
if (
|
||||
_all_hosts_have_been_processed(scan_completed, hosts_to_exploit)
|
||||
or stop.is_set()
|
||||
):
|
||||
if _all_hosts_have_been_processed(scan_completed, hosts_to_exploit):
|
||||
break
|
||||
|
||||
logger.debug(
|
||||
|
|
Loading…
Reference in New Issue