Agent: Remove redundant call to control_channel.get_config()

This commit is contained in:
Mike Salvatore 2022-06-23 14:44:42 -04:00
parent 0f848eb284
commit aff54232e9
1 changed files with 1 additions and 2 deletions

View File

@ -172,9 +172,8 @@ class InfectionMonkey:
)
config = control_channel.get_config()
keep_tunnel_open_time = control_channel.get_config().keep_tunnel_open_time
self._monkey_inbound_tunnel = self._control_client.create_control_tunnel(
keep_tunnel_open_time
config.keep_tunnel_open_time
)
if self._monkey_inbound_tunnel and should_propagate(config, self._current_depth):
self._inbound_tunnel_opened = True