mirror of
https://github.com/openharmony/useriam_auth_executor_mgr.git
synced 2026-07-19 14:43:31 -04:00
fix: codex review liuwenkai@huawei.com
Signed-off-by: lwk <1076278852@qq.com>
This commit is contained in:
@@ -119,6 +119,10 @@ int32_t AuthResPool::ScheduleCountMinus(uint64_t scheduleId)
|
||||
COAUTH_HILOGE(MODULE_SERVICE, "scheduleId is not found and count minus one failed");
|
||||
return FAIL;
|
||||
}
|
||||
if (iter->second->executorNum <= 0) {
|
||||
COAUTH_HILOGE(MODULE_SERVICE, "executorNum is less than 1");
|
||||
return FAIL;
|
||||
}
|
||||
iter->second->executorNum--;
|
||||
COAUTH_HILOGD(MODULE_SERVICE, "schedule count minus one success");
|
||||
return SUCCESS;
|
||||
|
||||
Reference in New Issue
Block a user