Agent: Reduce relay shutdown responsiveness

This commit is contained in:
Kekoa Kaaikala 2022-09-06 14:57:10 +00:00
parent e438a8b9c7
commit c021d54c05
1 changed files with 2 additions and 2 deletions

View File

@ -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)