Fixed logging error messages when a local client connects while instance is starting up

This commit is contained in:
Mark Qvist 2023-11-06 11:06:14 +01:00
parent fc0cf17c4d
commit b584832b8f
1 changed files with 2 additions and 1 deletions

View File

@ -272,7 +272,8 @@ class LocalClientInterface(Interface):
RNS.Transport.local_client_interfaces.remove(self)
if hasattr(self, "parent_interface") and self.parent_interface != None:
self.parent_interface.clients -= 1
RNS.Transport.owner._should_persist_data()
if hasattr(RNS.Transport, "owner") and RNS.Transport.owner != None:
RNS.Transport.owner._should_persist_data()
if nowarning == False:
RNS.log("The interface "+str(self)+" experienced an unrecoverable error and is being torn down. Restart Reticulum to attempt to open this interface again.", RNS.LOG_ERROR)