GameList: Fix lock not re-acquired on failure
This commit is contained in:
parent
8c2fe430d8
commit
d360564cef
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue