File move fix for windows

This commit is contained in:
Mark Qvist 2024-09-09 02:11:46 +02:00
parent c119ef4273
commit 50b1eae380

View File

@ -288,7 +288,7 @@ class Identity:
ratchet_file = open(outpath, "wb")
ratchet_file.write(umsgpack.packb(ratchet_data))
ratchet_file.close()
os.rename(outpath, finalpath)
os.replace(outpath, finalpath)
threading.Thread(target=persist_job, daemon=True).start()