From d360564cef3fa67d4b37bf8f36e40a8c40dd115a Mon Sep 17 00:00:00 2001 From: Stenzek Date: Wed, 25 Dec 2024 18:19:42 +1000 Subject: [PATCH] GameList: Fix lock not re-acquired on failure --- src/core/game_list.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/core/game_list.cpp b/src/core/game_list.cpp index 6b4246f54..aa0ccf9a0 100644 --- a/src/core/game_list.cpp +++ b/src/core/game_list.cpp @@ -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;