From: Tomasz Marciniak Date: Wed, 27 May 2015 14:21:26 +0000 (+0200) Subject: [Bluetooth] Fix for test. X-Git-Tag: submit/tizen_mobile/20150612.133019^2~2^2~122 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0fd0b86df602bb014a0767ffab84cddd10825fe9;p=platform%2Fcore%2Fapi%2Fwebapi-plugins.git [Bluetooth] Fix for test. [Verification] Code compiles without errors. Manual test BluetoothDiscoverDevicesSuccessCallback_ondevicedisappeared passes. TCT Auto pass rate 100% TCT Manual pass rate 100% Change-Id: I0f31fe544f132d57adb88040e3178a1f5cba8ce4 Signed-off-by: Tomasz Marciniak --- diff --git a/src/bluetooth/bluetooth_adapter.cc b/src/bluetooth/bluetooth_adapter.cc index fd5d6ec0..2c971424 100644 --- a/src/bluetooth/bluetooth_adapter.cc +++ b/src/bluetooth/bluetooth_adapter.cc @@ -294,9 +294,10 @@ void BluetoothAdapter::DiscoveryStateChangedCB( } data_obj->insert(std::make_pair(kData, picojson::value(adapter->discovered_devices_))); - adapter->instance_.FireEvent(kAdapterDiscoverSuccessEvent, value); + //TODO Consider if all events during scanning shouldn't be called asynchronously adapter->user_request_list_[DISCOVER_DEVICES] = false; + adapter->instance_.FireEvent(kAdapterDiscoverSuccessEvent, value); } if (adapter->user_request_list_[STOP_DISCOVERY]) {