This commit is contained in:
Davis King 2016-04-25 08:28:39 -04:00
commit 5bde3fad2e
1 changed files with 1 additions and 0 deletions

View File

@ -736,6 +736,7 @@ namespace dlib
// Now that we know the state is safely saved to disk, delete the old sync // Now that we know the state is safely saved to disk, delete the old sync
// file and move the .tmp file to it. // file and move the .tmp file to it.
std::remove(sync_filename.c_str());
std::rename(tempfile.c_str(), sync_filename.c_str()); std::rename(tempfile.c_str(), sync_filename.c_str());
last_sync_time = std::chrono::system_clock::now(); last_sync_time = std::chrono::system_clock::now();