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)