From 23b96c2a36a940ed6fcaccc71e521f7fe09ac0cc Mon Sep 17 00:00:00 2001 From: Mike Salvatore Date: Fri, 12 Aug 2022 10:13:36 -0400 Subject: [PATCH] Agent: Convert _event_queue from member to local variable --- monkey/infection_monkey/monkey.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/monkey/infection_monkey/monkey.py b/monkey/infection_monkey/monkey.py index 3feaebf9f..665f97222 100644 --- a/monkey/infection_monkey/monkey.py +++ b/monkey/infection_monkey/monkey.py @@ -106,7 +106,6 @@ class InfectionMonkey: self._current_depth = self._opts.depth self._master = None self._inbound_tunnel_opened = False - self._event_queue = None @staticmethod def _get_arguments(args): @@ -198,7 +197,7 @@ class InfectionMonkey: def _build_master(self): local_network_interfaces = InfectionMonkey._get_local_network_interfaces() - self._event_queue = PyPubSubEventQueue(Publisher()) + _event_queue = PyPubSubEventQueue(Publisher()) # TODO control_channel and control_client have same responsibilities, merge them control_channel = ControlChannel(