Change-Id: Ib9c2e29d3ee4f6e4ca3240e3f8633fff15655021
Signed-off-by: Taesoo Jun <steve.jun@samsung.com>
static void wait_for_async(int timeout)
{
int timeout_id = 0;
static void wait_for_async(int timeout)
{
int timeout_id = 0;
mainloop = g_main_loop_new(NULL, FALSE);
timeout_id = g_timeout_add(timeout, timeout_func, mainloop);
mainloop = g_main_loop_new(NULL, FALSE);
timeout_id = g_timeout_add(timeout, timeout_func, mainloop);
+ if (timeout_id < 0)
+ return;
+
g_main_loop_run(mainloop);
g_main_loop_run(mainloop);
-/*
- g_source_remove(timeout_id);
-*/
}
static void __bt_oal_event_receiver(int event_type, gpointer event_data, gsize len)
}
static void __bt_oal_event_receiver(int event_type, gpointer event_data, gsize len)