Fix TCT fail issue by API calling timing
[platform/core/connectivity/bluetooth-frwk.git] / bt-oal / bluez_hal / src / bt-hal-event-receiver.c
index fd1a1d5..38c838d 100644 (file)
@@ -400,7 +400,7 @@ static void __bt_hal_adapter_property_changed_event(GVariant *msg)
                        }
 
                } else if (!g_strcmp0(key, "LEDiscovering")) {
-//                     GVariant *result;
+                       GVariant *result;
 
                        is_le_discovering = g_variant_get_boolean(value);
                        DBG("##LE Discovering = [%d]", is_le_discovering);
@@ -408,7 +408,6 @@ static void __bt_hal_adapter_property_changed_event(GVariant *msg)
                        if (is_le_discovering)
                                continue;
 
-#if 0 /* No need to stop le discovery in case LEDiscovering is false */
                        adapter_proxy = _bt_hal_get_adapter_proxy();
                        if (adapter_proxy == NULL) {
                                ERR("adapter_proxy == NULL");
@@ -428,7 +427,6 @@ static void __bt_hal_adapter_property_changed_event(GVariant *msg)
                                continue;
                        }
                        g_variant_unref(result);
-#endif
 
                        size += __bt_insert_hal_properties(buf + size,
                                HAL_PROP_ADAPTER_LE_DISCOVERY_FINISHED, sizeof(gboolean), &is_le_discovering);