When a packge manager event on dependent modules is detected
(such as wakeup engine package), the multi-assistant-service
tries to reload wakeup manager plugin and also reload the
assistant info files.
But the previous implementation appends assistant information
whenever this reload process is requested, not replacing the
original assistant information struct, causing the struct
to contain duplicated entries and also retains entries for
outdated assistant information.
For this reason, make sure the assistant information struct
is cleared before reading assistant info files.
Change-Id: I9ba1c4d7f4fd8c1070f9e1dd5d9d63fc002dd380
return -1;
}
+ memset(&g_maclient_info, 0x00, sizeof(g_maclient_info));
+ g_current_maclient_info = -1;
+ g_current_preprocessing_maclient_info = -1;
+ g_wakeup_maclient_appid = NULL;
+
if (0 == mas_config_get_assistant_info(__mas_assistant_info_cb, NULL)) {
for (int loop = 0; loop < MAX_MACLIENT_INFO_NUM; loop++) {
int inner_loop;