diff --git a/monkey/infection_monkey/network/network_scanner.py b/monkey/infection_monkey/network/network_scanner.py index a89920c72..dea7707ad 100644 --- a/monkey/infection_monkey/network/network_scanner.py +++ b/monkey/infection_monkey/network/network_scanner.py @@ -38,7 +38,7 @@ def generate_victims(net_ranges, chunk_size): chunk.append(victim) if len(chunk) == chunk_size: yield chunk - yield chunk + chunk = [] class NetworkScanner(object):