g_mutex_lock(&dispatch_lock);
if (muse_core_msg_object_get_value(MSG_KEY_MODULE_INDEX, jobj, MUSE_TYPE_INT, &idx)) {
m->idx = idx;
+ m->ch[MUSE_CHANNEL_MSG].dll_handle = ms_module_open(idx);
if (_ms_ipc_module_instance_creation_is_allowed(idx) == FALSE) {
ms_cmd_dispatch(m, MUSE_MODULE_COMMAND_RESOURCE_NOT_AVAILABLE);
g_mutex_unlock(&dispatch_lock);
LOGW("connected pid [%d] msg [%d] is different", m->pid, pid);
ms_connection_register(m);
m->is_create_api_called = true;
- m->ch[MUSE_CHANNEL_MSG].dll_handle = ms_module_open(idx);
#ifndef MUSE_USE_LWIPC
if (access(MUSE_SERVER_READY, F_OK) == 0)
#endif
g_mutex_lock(&dispatch_lock);
if (muse_core_msg_object_get_value(MSG_KEY_MODULE_INDEX, jobj, MUSE_TYPE_INT, &idx)) {
m->idx = idx;
+ m->ch[MUSE_CHANNEL_MSG].dll_handle = ms_module_open(idx);
if (_ms_ipc_module_instance_creation_is_allowed(idx) == FALSE) {
ms_cmd_dispatch(m, MUSE_MODULE_COMMAND_RESOURCE_NOT_AVAILABLE);
g_mutex_unlock(&dispatch_lock);
g_mutex_init(&m->ch[MUSE_CHANNEL_DATA].data_mutex);
g_cond_init(&m->ch[MUSE_CHANNEL_DATA].data_cond);
value = ms_module_get_loaded_dllsym(idx);
- m->ch[MUSE_CHANNEL_MSG].dll_handle = ms_module_open(idx);
}
}