Agent: No need to check relay existence

This commit is contained in:
Kekoa Kaaikala 2022-09-07 14:25:57 +00:00 committed by Mike Salvatore
parent aac0bfe90b
commit 28f555498f
1 changed files with 1 additions and 3 deletions

View File

@ -192,9 +192,7 @@ class InfectionMonkey:
client_disconnect_timeout=config.keep_tunnel_open_time, client_disconnect_timeout=config.keep_tunnel_open_time,
) )
if self._relay and maximum_depth_reached( if maximum_depth_reached(config.propagation.maximum_depth, self._current_depth):
config.propagation.maximum_depth, self._current_depth
):
self._relay.start() self._relay.start()
StateTelem(is_done=False, version=get_version()).send() StateTelem(is_done=False, version=get_version()).send()