Change-Id: I1b98bed183510ca79c3448da5e2bd2a4115de709
Signed-off-by: sanghyeok.oh <sanghyeok.oh@samsung.com>
return FALSE;
}
-static gboolean
-_g_kdbus_thread_end (gpointer thread)
-{
- GThread *gthread = (GThread *)thread;
-
- g_thread_join (gthread);
-
- return FALSE;
-}
-
/*
* _g_kdbus_close
*/
g_main_loop_unref (worker->loop);
- if (g_thread_self() == worker->thread)
- g_main_context_invoke (NULL, _g_kdbus_thread_end, worker->thread);
- else
- g_thread_join (worker->thread);
+ g_thread_unref(worker->thread);
worker->thread = NULL;