mirror of
https://github.com/stenzek/duckstation.git
synced 2025-06-07 12:05:52 +00:00
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;
|
Entry entry;
|
||||||
if (!PopulateEntryFromPath(path, &entry))
|
if (!PopulateEntryFromPath(path, &entry))
|
||||||
|
{
|
||||||
|
lock.lock();
|
||||||
return false;
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
entry.path = std::move(path);
|
entry.path = std::move(path);
|
||||||
entry.last_modified_time = timestamp;
|
entry.last_modified_time = timestamp;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user