FIX: missing unlock cause device or resource busy

Change-Id: I87563312ea9c6ce4e4e471da7ce7a02b53b64762
This commit is contained in:
chunmao.guo 2023-11-09 08:53:05 +08:00 committed by Lane.Wei
parent 0b68a3ac72
commit 268fa5dc8b
1 changed files with 1 additions and 0 deletions

View File

@ -1645,6 +1645,7 @@ bool PresetCollection::load_user_preset(std::string name, std::map<std::string,
// base_id
if (preset_values.find(BBL_JSON_KEY_BASE_ID) == preset_values.end()) {
BOOST_LOG_TRIVIAL(warning) << __FUNCTION__ << boost::format("can not find base_id, not loading for user preset %1%") % name;
unlock();
return false;
}
std::string cloud_base_id = preset_values[BBL_JSON_KEY_BASE_ID];