Commit a22d4559 authored by Davis King's avatar Davis King

merged

parents 5c2b1f98 fcf11feb
......@@ -736,6 +736,7 @@ namespace dlib
// Now that we know the state is safely saved to disk, delete the old sync
// file and move the .tmp file to it.
std::remove(sync_filename.c_str());
std::rename(tempfile.c_str(), sync_filename.c_str());
last_sync_time = std::chrono::system_clock::now();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment