From 51ecf52d4bfc4f347efe8e53ee3491d2ce57c9b9 Mon Sep 17 00:00:00 2001 From: Mike Salvatore Date: Mon, 19 Sep 2022 14:01:08 -0400 Subject: [PATCH] Agent: Add an ID (int) to relay control message thread name --- monkey/infection_monkey/network/relay/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/monkey/infection_monkey/network/relay/utils.py b/monkey/infection_monkey/network/relay/utils.py index 6d4944e3b..cdb44ced0 100644 --- a/monkey/infection_monkey/network/relay/utils.py +++ b/monkey/infection_monkey/network/relay/utils.py @@ -73,10 +73,10 @@ def _check_if_island_server(server: str) -> IIslandAPIClient: def send_remove_from_waitlist_control_message_to_relays(servers: Iterable[str]): - for server in servers: + for i, server in enumerate(servers, start=1): t = create_daemon_thread( target=_send_remove_from_waitlist_control_message_to_relay, - name="SendRemoveFromWaitlistControlMessageToRelaysThread", + name=f"SendRemoveFromWaitlistControlMessageToRelaysThread-{i:02d}", args=(server,), ) t.start()