GameList: Fix lock not re-acquired on failure

This commit is contained in:
Stenzek 2024-12-25 18:19:42 +10:00
parent 8c2fe430d8
commit d360564cef
No known key found for this signature in database
1 changed files with 3 additions and 0 deletions

View File

@ -545,7 +545,10 @@ bool GameList::ScanFile(std::string path, std::time_t timestamp, std::unique_loc
Entry entry;
if (!PopulateEntryFromPath(path, &entry))
{
lock.lock();
return false;
}
entry.path = std::move(path);
entry.last_modified_time = timestamp;