From 28f555498f7cc5365f3c4608b08b7cb40c4fdbc1 Mon Sep 17 00:00:00 2001 From: Kekoa Kaaikala Date: Wed, 7 Sep 2022 14:25:57 +0000 Subject: [PATCH] Agent: No need to check relay existence --- monkey/infection_monkey/monkey.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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()