Agent: Set daemon thread in superclass constructor

This commit is contained in:
Kekoa Kaaikala 2022-09-06 12:27:07 +00:00
parent 483bd943bd
commit 7a7ea96dbb
2 changed files with 2 additions and 4 deletions

View File

@ -23,8 +23,7 @@ class SocketsPipe(Thread):
self.dest = dest
self.timeout = timeout
self._keep_connection = True
super().__init__(name=f"SocketsPipeThread-{self.ident}")
self.daemon = True
super().__init__(name=f"SocketsPipeThread-{self.ident}", daemon=True)
self._client_disconnected = client_disconnected
def run(self):

View File

@ -20,8 +20,7 @@ class TCPRelay(Thread):
self._user_handler = relay_user_handler
self._connection_handler = connection_handler
self._pipe_spawner = pipe_spawner
super().__init__(name="MonkeyTcpRelayThread")
self.daemon = True
super().__init__(name="MonkeyTcpRelayThread", daemon=True)
self._lock = Lock()
def run(self):