diff --git a/monkey/infection_monkey/monkey.py b/monkey/infection_monkey/monkey.py index 3d24c93d3..728c463a0 100644 --- a/monkey/infection_monkey/monkey.py +++ b/monkey/infection_monkey/monkey.py @@ -192,9 +192,7 @@ class InfectionMonkey: client_disconnect_timeout=config.keep_tunnel_open_time, ) - if self._relay and maximum_depth_reached( - config.propagation.maximum_depth, self._current_depth - ): + if maximum_depth_reached(config.propagation.maximum_depth, self._current_depth): self._relay.start() StateTelem(is_done=False, version=get_version()).send()