Do not exit at dispatcher worker when destroy dispatcher is failed 19/275819/1 accepted/tizen/6.0/unified/20220603.141107 submit/tizen_6.0/20220602.224303
authorYoungHun Kim <yh8004.kim@samsung.com>
Thu, 2 Jun 2022 02:50:59 +0000 (11:50 +0900)
committerYoungHun Kim <yh8004.kim@samsung.com>
Thu, 2 Jun 2022 07:19:04 +0000 (16:19 +0900)
 - The dispatcher worker exits when socket is disconnected and then module_cleanup is called.

Change-Id: I6a038ac01bb92f928a832fa49de04e02d5e00314

packaging/mused.spec
server/src/muse_server_ipc.c

index 8ee82cb0a8bf42b93859775f71c9dc0c481fc0de..b49a23a996e929f227997a97a741dd9e3007d4b5 100644 (file)
@@ -1,6 +1,6 @@
 Name:       mused
 Summary:    A multimedia daemon
-Version:    0.3.138
+Version:    0.3.139
 Release:    0
 Group:      System/Libraries
 License:    Apache-2.0
index dce5321d0d57acea1c41e3f4ebf18ace6d99b0f2..1ff6e05846537659d1975d0f35e2d7ec843a8e64 100644 (file)
@@ -205,8 +205,12 @@ static gboolean _ms_ipc_dispatch_destroy(muse_module_h m)
 
        ms_module_dispatch_lock(m);
        dispatch_ret = ms_module_dispatch(m);
-       if (dispatch_ret != MM_ERROR_NONE)
+       if (dispatch_ret != MM_ERROR_NONE) {
                LOGE("destroy dispatch failed 0x%x", dispatch_ret);
+               ms_module_dispatch_unlock(m);
+               return TRUE;
+       }
+
        ms_module_dispatch_unlock(m);
 
        return FALSE;