Remove thread check in _ms_ipc_dispatch_worker function. 96/206096/1 submit/tizen/20190514.085759
authorJeongmo Yang <jm80.yang@samsung.com>
Tue, 14 May 2019 02:10:58 +0000 (11:10 +0900)
committerJeongmo Yang <jm80.yang@samsung.com>
Tue, 14 May 2019 07:53:16 +0000 (16:53 +0900)
- The thread variable could not be assigned at that time,
  although it's created successfully by thread scheduling.
  It can cause unexpected invalid operation.

[Version] 0.3.77
[Profile] Common
[Issue Type] Bug fix

Change-Id: Id860d8c2df21da6270866ce2367e711224bf2c43
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
packaging/mused.spec
server/src/muse_server_ipc.c

index 49e3638..00a2d79 100644 (file)
@@ -1,6 +1,6 @@
 Name:       mused
 Summary:    A multimedia daemon
-Version:    0.3.76
+Version:    0.3.77
 Release:    0
 Group:      System/Libraries
 License:    Apache-2.0 and BSD-3-Clause
index c17c9cb..8dbd528 100644 (file)
@@ -129,7 +129,7 @@ static gpointer _ms_ipc_dispatch_worker(gpointer data)
                                        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) || !m->ch[MUSE_CHANNEL_MSG].thread) {
+                                               if (!_ms_ipc_module_instance_creation_is_allowed(idx)) {
                                                        ms_cmd_dispatch(m, MUSE_MODULE_COMMAND_RESOURCE_NOT_AVAILABLE);
                                                        ms_module_dispatch_unlock(m);
                                                        ms_exit_worker(m);