From b584832b8fa23d33a102b78c2219057a91326ded Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Mon, 6 Nov 2023 11:06:14 +0100 Subject: [PATCH] Fixed logging error messages when a local client connects while instance is starting up --- RNS/Interfaces/LocalInterface.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/RNS/Interfaces/LocalInterface.py b/RNS/Interfaces/LocalInterface.py index a6578ab..23fd068 100644 --- a/RNS/Interfaces/LocalInterface.py +++ b/RNS/Interfaces/LocalInterface.py @@ -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)