return TRUE;
}
+static gboolean __bt_core_terminate_cb(gpointer data)
+{
+ _bt_core_terminate();
+
+ return FALSE;
+}
+
gboolean _bt_core_disable_adapter(void)
{
int ret;
if (vconf_set_int(BT_OFF_DUE_TO_FLIGHT_MODE, 0) != 0)
BT_ERR("Set vconf failed");
+ g_idle_add((GSourceFunc)__bt_core_terminate_cb, NULL);
+
ret = _bt_disable_adapter();
if (ret < 0)
return FALSE;