Improved status display for I2P interfaces

This commit is contained in:
Mark Qvist 2022-05-25 21:44:49 +02:00
parent 3af5a8f3ed
commit a6dbc53209
2 changed files with 3 additions and 2 deletions

View file

@ -562,7 +562,8 @@ class I2PInterfacePeer(Interface):
self.IN = False
if hasattr(self, "parent_interface") and self.parent_interface != None:
self.parent_interface.clients -= 1
if self.parent_interface.clients > 0:
self.parent_interface.clients -= 1
if self in RNS.Transport.interfaces:
if not self.initiator: