forked from p15670423/monkey
Agent: Set daemon thread in superclass constructor
This commit is contained in:
parent
483bd943bd
commit
7a7ea96dbb
|
@ -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):
|
||||
|
|
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue