mirror of
https://github.com/markqvist/Reticulum.git
synced 2026-12-04 22:00:12 -05:00
Use canonical Transport interface list add/removes. Improved announce cache cleaning. Adjusted logging.
This commit is contained in:
parent
d5b64a4af3
commit
e7a317f0a0
10 changed files with 44 additions and 39 deletions
|
|
@ -436,9 +436,8 @@ class TCPClientInterface(Interface):
|
|||
while self in self.parent_interface.spawned_interfaces:
|
||||
self.parent_interface.spawned_interfaces.remove(self)
|
||||
|
||||
if self in RNS.Transport.interfaces:
|
||||
if not self.initiator:
|
||||
RNS.Transport.interfaces.remove(self)
|
||||
if not self.initiator:
|
||||
RNS.Transport.remove_interface(self)
|
||||
|
||||
|
||||
def __str__(self):
|
||||
|
|
@ -627,7 +626,7 @@ class TCPServerInterface(Interface):
|
|||
spawned_interface.HW_MTU = self.HW_MTU
|
||||
spawned_interface.online = True
|
||||
RNS.log("Spawned new TCPClient Interface: "+str(spawned_interface), RNS.LOG_VERBOSE)
|
||||
RNS.Transport.interfaces.append(spawned_interface)
|
||||
RNS.Transport.add_interface(spawned_interface)
|
||||
while spawned_interface in self.spawned_interfaces:
|
||||
self.spawned_interfaces.remove(spawned_interface)
|
||||
self.spawned_interfaces.append(spawned_interface)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue