forked from p15670423/monkey
Agent: Use event.wait() when running TCPRelay
This commit is contained in:
parent
31ff85ad3c
commit
302cdaac70
|
@ -46,8 +46,7 @@ class TCPRelay(Thread):
|
||||||
)
|
)
|
||||||
proxy.start()
|
proxy.start()
|
||||||
|
|
||||||
while not self._stopped.is_set():
|
self._stopped.wait()
|
||||||
sleep(0.001)
|
|
||||||
|
|
||||||
self._wait_for_users_to_disconnect()
|
self._wait_for_users_to_disconnect()
|
||||||
|
|
||||||
|
|
|
@ -286,6 +286,9 @@ event
|
||||||
deserialize
|
deserialize
|
||||||
serialized_event
|
serialized_event
|
||||||
|
|
||||||
|
# TODO: Remove after #2231 is closed
|
||||||
|
relay_users
|
||||||
|
|
||||||
# pydantic base models
|
# pydantic base models
|
||||||
underscore_attrs_are_private
|
underscore_attrs_are_private
|
||||||
extra
|
extra
|
||||||
|
|
Loading…
Reference in New Issue