Agent: Reduce relay shutdown responsiveness
This commit is contained in:
parent
e438a8b9c7
commit
c021d54c05
|
@ -41,11 +41,11 @@ class TCPRelay(Thread):
|
||||||
Blocks until the users disconnect or the timeout has elapsed.
|
Blocks until the users disconnect or the timeout has elapsed.
|
||||||
"""
|
"""
|
||||||
while self._user_handler.has_potential_users():
|
while self._user_handler.has_potential_users():
|
||||||
sleep(0.01)
|
sleep(0.5)
|
||||||
|
|
||||||
def _wait_for_pipes_to_close(self):
|
def _wait_for_pipes_to_close(self):
|
||||||
"""
|
"""
|
||||||
Blocks until the pipes have closed.
|
Blocks until the pipes have closed.
|
||||||
"""
|
"""
|
||||||
while self._pipe_spawner.has_open_pipes():
|
while self._pipe_spawner.has_open_pipes():
|
||||||
sleep(0.01)
|
sleep(0.5)
|
||||||
|
|
Loading…
Reference in New Issue