mirror of
https://github.com/markqvist/Reticulum.git
synced 2025-01-21 09:40:34 +00:00
Better thread configuration
This commit is contained in:
parent
d2cf3c2a7e
commit
3e7ab5136e
@ -319,6 +319,7 @@ class LocalServerInterface(Interface):
|
||||
address = (self.bind_ip, self.bind_port)
|
||||
|
||||
self.server = ThreadingTCPServer(address, handlerFactory(self.incoming_connection))
|
||||
self.server.daemon_threads = True
|
||||
|
||||
thread = threading.Thread(target=self.server.serve_forever)
|
||||
thread.daemon = True
|
||||
|
@ -2690,7 +2690,7 @@ class Transport:
|
||||
def detach_job():
|
||||
RNS.log(f"Detaching {interface}", RNS.LOG_EXTREME)
|
||||
interface.detach()
|
||||
dt = threading.Thread(target=detach_job, daemon=True)
|
||||
dt = threading.Thread(target=detach_job, daemon=False)
|
||||
dt.start()
|
||||
detach_threads.append(dt)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user