Do not exit at dispatcher worker when destroy dispatcher is failed 00/275800/6 accepted/tizen/unified/20220603.141256 submit/tizen/20220602.062226
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 05:17:11 +0000 (14:17 +0900)
 - The dispatcher worker exits when socket is disconnected and then module_cleanup is called.

Change-Id: I4be7b552f44aac331c907e8fc21d121e310ee484

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

index 5533a27..5d3c148 100644 (file)
@@ -1,6 +1,6 @@
 Name:       mused
 Summary:    A multimedia daemon
-Version:    0.3.149
+Version:    0.3.150
 Release:    0
 Group:      System/Libraries
 License:    Apache-2.0
index dce5321..1ff6e05 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;