break;
default:
module->ch[MUSE_CHANNEL_MSG].tbm_fd = tbm_fd;
- if ((value = muse_core_module_get_instance()->get_dllsymbol_loaded_value(module->api_module)) == false) {
- LOGE("### >>> Please check whether it has really intended to not call the create api [module %p]", module);
- module->is_create_api_called = false;
+
+ if (module->is_create_api_called == false) {
if (muse_core_msg_json_deserialize(MUSE_MODULE, module->recvMsg + module->msg_offset, &parse_len, &api_module, &err, MUSE_TYPE_INT)) {
module->api_module = api_module;
- module->ch[MUSE_CHANNEL_MSG].dll_handle = muse_core_module_get_instance()->load(api_module);
module->ch[MUSE_CHANNEL_DATA].queue = g_queue_new();
g_mutex_init(&module->ch[MUSE_CHANNEL_DATA].mutex);
+ module->ch[MUSE_CHANNEL_MSG].dll_handle = muse_core_module_get_instance()->load(api_module);
}
}
+
muse_core_module_get_instance()->dispatch(cmd, module);
+
if (module->is_create_api_called == false) {
LOGE("<<< ### _muse_core_ipc_client_cleanup [module %p] [get_dllsymbol_loaded_value %d]", module, value);
_muse_core_ipc_client_cleanup(module);