Improved daemon restart time on systems with many interfaces

This commit is contained in:
Mark Qvist 2025-01-16 17:48:16 +01:00
parent a56d93fc1e
commit ad1e6a41ee
3 changed files with 8 additions and 1 deletions

View file

@ -263,6 +263,7 @@ class Reticulum:
RNS.loglevel = self.requested_loglevel
self.is_shared_instance = False
self.shared_instance_interface = None
self.require_shared = require_shared_instance
self.is_connected_to_shared_instance = False
self.is_standalone_instance = False
@ -361,6 +362,7 @@ class Reticulum:
else:
RNS.Transport.interfaces.append(interface)
self.shared_instance_interface = interface
self.is_shared_instance = True
RNS.log("Started shared instance interface: "+str(interface), RNS.LOG_DEBUG)
self.__start_jobs()