Agent: Use event.wait() when running TCPRelay

This commit is contained in:
Ilija Lazoroski 2022-09-01 09:57:46 +02:00
parent 31ff85ad3c
commit 302cdaac70
2 changed files with 4 additions and 2 deletions

View File

@ -46,8 +46,7 @@ class TCPRelay(Thread):
)
proxy.start()
while not self._stopped.is_set():
sleep(0.001)
self._stopped.wait()
self._wait_for_users_to_disconnect()

View File

@ -286,6 +286,9 @@ event
deserialize
serialized_event
# TODO: Remove after #2231 is closed
relay_users
# pydantic base models
underscore_attrs_are_private
extra