Fixed interface detachment on TCP initiator interfaces

This commit is contained in:
Mark Qvist 2021-10-08 17:06:00 +02:00
parent de800f0ea7
commit 60917f0eea
3 changed files with 11 additions and 3 deletions

View file

@ -275,7 +275,8 @@ class TCPClientInterface(Interface):
self.parent_interface.clients -= 1
if self in RNS.Transport.interfaces:
RNS.Transport.interfaces.remove(self)
if not self.initiator:
RNS.Transport.interfaces.remove(self)
def __str__(self):