From e22a8021d305a6ba9fb69c2203ccda8d490bb568 Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Mon, 13 Apr 2026 11:12:12 +0200 Subject: [PATCH] Copy on known destinations persist --- RNS/Identity.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/RNS/Identity.py b/RNS/Identity.py index aaed5e7..600ade1 100644 --- a/RNS/Identity.py +++ b/RNS/Identity.py @@ -187,8 +187,7 @@ class Identity: with open(RNS.Reticulum.storagepath+"/known_destinations","rb") as file: storage_known_destinations = umsgpack.load(file) - except: - pass + except: pass try: for destination_hash in storage_known_destinations: @@ -199,8 +198,7 @@ class Identity: RNS.log("Saving "+str(len(Identity.known_destinations))+" known destinations to storage...", RNS.LOG_DEBUG) with open(RNS.Reticulum.storagepath+"/known_destinations","wb") as file: - umsgpack.dump(Identity.known_destinations, file) - + umsgpack.dump(Identity.known_destinations.copy(), file) save_time = time.time() - save_start if save_time < 1: