diff --git a/monkey/infection_monkey/network/relay/relay_connection_handler.py b/monkey/infection_monkey/network/relay/relay_connection_handler.py index 8f039488b..fe08a5a61 100644 --- a/monkey/infection_monkey/network/relay/relay_connection_handler.py +++ b/monkey/infection_monkey/network/relay/relay_connection_handler.py @@ -16,7 +16,6 @@ class RelayConnectionHandler: control_message = sock.recv(socket.MSG_PEEK) addr, _ = sock.getpeername() # TODO check the type of the addr object if control_message.startswith(RELAY_CONTROL_MESSAGE): - self._relay_user_handler.disconnect_user(IPv4Address(addr)) else: self._relay_user_handler.add_relay_user(IPv4Address(addr))