Do not call g_thread_unref after g_thread_jon 44/107744/4
authorYoungHun Kim <yh8004.kim@samsung.com>
Thu, 29 Dec 2016 12:39:32 +0000 (21:39 +0900)
committerYoungHun Kim <yh8004.kim@samsung.com>
Fri, 30 Dec 2016 05:09:36 +0000 (21:09 -0800)
Change-Id: Ic33b66b420b728ac4aca81f1422c75718d7df5c6

src/muse_core.c

index 268ae1c..1ac134e 100644 (file)
@@ -608,12 +608,6 @@ void muse_core_worker_exit(muse_module_h module)
        LOGD("[close] MUSE_CHANNEL_DATA");
        muse_core_connection_close(module->ch[MUSE_CHANNEL_DATA].fd);
 
-       LOGD("%p thread exit", module->ch[MUSE_CHANNEL_MSG].p_gthread);
-       if (module->ch[MUSE_CHANNEL_MSG].p_gthread)
-               g_thread_unref(module->ch[MUSE_CHANNEL_MSG].p_gthread);
-
-       if (module->ch[MUSE_CHANNEL_DATA].p_gthread)
-               g_thread_unref(module->ch[MUSE_CHANNEL_DATA].p_gthread);
        MUSE_FREE(module);
 
        muse_core_tool_recursive_rmdir(MUSE_DATA_ROOT_PATH);