Temp devicefound events are sent after DISCOVERY_STARTED accepted/tizen/20131023.171040 submit/tizen/20131023.044737
authorWu zheng <wu.zheng@intel.com>
Wed, 23 Oct 2013 03:36:39 +0000 (11:36 +0800)
committerWu zheng <wu.zheng@intel.com>
Wed, 23 Oct 2013 03:36:39 +0000 (11:36 +0800)
Before temp device found events are sent before DISCOVERY_STARTED.

It is not right. The patch will modify it.

The patch has been approved.

Change-Id: I54da96c21eca318f1f6e72d5694b1c8cae8216f0

bt-service/bt-service-adapter.c
bt-service/bt-service-event-receiver.c

index 1a390c8..a1eadb0 100644 (file)
@@ -1255,7 +1255,6 @@ int _bt_start_discovery(void)
                return BLUETOOTH_ERROR_INTERNAL;
        }
 
-       _bt_get_temp_remote_devinfo();
        _bt_stop_discovery_timeout();
 
        is_discovering = TRUE;
index 23a62bd..0683c69 100644 (file)
@@ -736,6 +736,7 @@ void __bt_adapter_property_changed_event(DBusMessageIter *msg_iter, const char *
                                BLUETOOTH_EVENT_DISCOVERY_STARTED,
                                DBUS_TYPE_INT32, &result,
                                DBUS_TYPE_INVALID);
+                       _bt_get_temp_remote_devinfo();
                } else {
                        if (event_id > 0){
                                g_source_remove(event_id);