if (items.size() < MAX_MACLIENT_INFO_NUM) {
index = items.size();
items.push_back(ClientInfoItems());
+ } else {
+ MAS_LOGE("ClientInfoItems size exceeded %d", MAX_MACLIENT_INFO_NUM);
}
}
if (-1 != index) {
items[index].used = true;
items[index].preprocessing_allow_mode = MA_PREPROCESSING_ALLOW_NONE;
items[index].preprocessing_allow_appid = boost::none;
- MAS_LOGD("app_id(%s)", info->app_id);
+ MAS_LOGD("[%d] app_id(%s)", index, info->app_id);
items[index].appid = info->app_id;
if (is_current_preprocessing_assistant(items[index].appid)) {
std::vector<ClientInfoItems> &items = mClientInfo.getItems();
for (int loop = 0; loop < std::min(MAX_MACLIENT_INFO_NUM, items.size()); loop++) {
- if (items[loop].used &&
- 0 < items[loop].appid.length() &&
- 0 < items[loop].wakeup_word[0].size()) {
+ LOGD("Comparing appid : [%d] %s %s", loop, appid, items[loop].appid.c_str());
+ if (items[loop].used && 0 < items[loop].appid.length()) {
if (0 == items[loop].appid.compare(appid)) {
MAS_LOGE("mCurrentClientInfo : %d %s", mCurrentClientInfo, appid);
mCurrentClientInfo = loop;