Fixed known destinations persist regression on windows

This commit is contained in:
Mark Qvist
2026-05-28 23:26:59 +02:00
parent f3517d2e4b
commit 739fdd387e
+1 -1
View File
@@ -218,7 +218,7 @@ class Identity:
try:
with open(temp_file,"wb") as file: umsgpack.dump(Identity.known_destinations.copy(), file)
os.rename(temp_file, RNS.Reticulum.storagepath+f"/known_destinations")
os.replace(temp_file, RNS.Reticulum.storagepath+f"/known_destinations")
except Exception as e:
RNS.log(f"Error while serializing and writing known destinations: {e}", RNS.LOG_ERROR)