mirror of
https://github.com/wiiu-env/WiiUPluginLoaderBackend.git
synced 2026-09-08 11:59:16 -05:00
Use remove_first_if instead of remove_locked_first_if when possible
This commit is contained in:
@@ -186,7 +186,7 @@ namespace WUPSConfigAPIBackend {
|
||||
|
||||
if (!remove_locked_first_if(sConfigCategoryMutex, sConfigCategories, [&handle](auto &cur) { return handle == cur.get(); })) {
|
||||
{
|
||||
// Ignore any attempts to destroy to create root item.
|
||||
// Ignore any attempts to destroy the root item.
|
||||
std::lock_guard lock(sConfigsMutex);
|
||||
if (std::any_of(sConfigs.begin(), sConfigs.end(), [&handle](auto &cur) { return handle == cur.get(); })) {
|
||||
return WUPSCONFIG_API_RESULT_SUCCESS;
|
||||
|
||||
Reference in New Issue
Block a user