From b74c42ff0704d968582de606d2b10963bb81998a Mon Sep 17 00:00:00 2001 From: Kekoa Kaaikala Date: Wed, 7 Sep 2022 18:01:54 +0000 Subject: [PATCH] Agent: Add join timeout for the relay thread --- monkey/infection_monkey/monkey.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/monkey/infection_monkey/monkey.py b/monkey/infection_monkey/monkey.py index 3d895d5a1..9ba8e772a 100644 --- a/monkey/infection_monkey/monkey.py +++ b/monkey/infection_monkey/monkey.py @@ -397,7 +397,7 @@ class InfectionMonkey: if self._relay and self._relay.is_alive(): self._relay.stop() - self._relay.join() + self._relay.join(timeout=60) if firewall.is_enabled(): firewall.remove_firewall_rule()