2
0
mirror of https://github.com/Sude-/lgogdownloader.git synced 2025-03-09 12:55:58 +01:00
Sude 4c480465b3 Fix skipped file downloads due to race condition
If multiple threads detected that directory didn't exist at the same time and tried to create it then one thread would succeed in creating it first and other threads would be trying to create a directory that already exists.
boost::filesystem::create_directories() would then return false for those threads and skip the file download.

Having additional check to see if the directory exists after boost::filesystem::create_directories() returns false fixes the problem.
2016-11-03 21:51:20 +02:00
..
2016-05-20 20:33:07 +03:00