mirror of
https://github.com/markqvist/Reticulum.git
synced 2026-11-19 14:36:34 -05:00
Well, yeah
This commit is contained in:
parent
8c73e203b1
commit
4a058544a5
2 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue