From 16dae8184438bb6c7ef7285cd3d95e8810b41c76 Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Fri, 24 Sep 2021 14:11:04 +0200 Subject: [PATCH] Fixed regression in TCPInterface client spawner. --- RNS/Interfaces/TCPInterface.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/RNS/Interfaces/TCPInterface.py b/RNS/Interfaces/TCPInterface.py index 76729da..92db9c8 100644 --- a/RNS/Interfaces/TCPInterface.py +++ b/RNS/Interfaces/TCPInterface.py @@ -70,7 +70,7 @@ class TCPClientInterface(Interface): if not self.connect(initial=True): thread = threading.Thread(target=self.reconnect) - thread.setDaemon(False) + thread.setDaemon(True) thread.start() else: thread = threading.Thread(target=self.read_loop) @@ -292,6 +292,7 @@ class TCPServerInterface(Interface): spawned_interface.target_ip = handler.client_address[0] spawned_interface.target_port = str(handler.client_address[1]) spawned_interface.parent_interface = self + spawned_interface.online = True RNS.log("Spawned new TCPClient Interface: "+str(spawned_interface), RNS.LOG_VERBOSE) RNS.Transport.interfaces.append(spawned_interface) spawned_interface.read_loop()