mirror of
https://github.com/markqvist/Reticulum
synced 2026-11-22 23:10:32 +00:00
Well, yeah
This commit is contained in:
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -951,7 +951,7 @@ class Identity:
|
||||
|
||||
@staticmethod
|
||||
def persist_data(background=False):
|
||||
if not RNS.Transport.owner.is_connected_to_shared_instance:
|
||||
if hasattr(RNS.Transport, "owner") and not RNS.Transport.owner.is_connected_to_shared_instance:
|
||||
if Identity.known_destinations_store != None: Identity.flush_known_destinations()
|
||||
else: Identity.save_known_destinations_legacy(background=background)
|
||||
|
||||
|
||||
+1
-1
@@ -4942,7 +4942,7 @@ class Transport:
|
||||
if not os.getpid() == RNS.Reticulum.get_instance_pid(): return
|
||||
Transport._should_run = False
|
||||
Transport.void_queues()
|
||||
if not Transport.owner.is_connected_to_shared_instance:
|
||||
if hasattr(Transport, "owner") and not Transport.owner.is_connected_to_shared_instance:
|
||||
Transport.persist_data()
|
||||
if Transport.announce_cache != None: Transport.announce_cache.flush()
|
||||
|
||||
|
||||
Reference in new issue
Block a user