Added table persist on local client disconnect

This commit is contained in:
Mark Qvist 2022-09-13 22:32:00 +02:00
parent 81e0989070
commit 921987c999
3 changed files with 7 additions and 1 deletions

View file

@ -246,6 +246,7 @@ 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 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)