mirror of
https://github.com/markqvist/Reticulum.git
synced 2026-04-27 14:20:35 +00:00
Copy on known destinations persist
This commit is contained in:
parent
111c9c0ed0
commit
e22a8021d3
1 changed files with 2 additions and 4 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue