The following app code caused aforementioned errors:
var adapter = tizen.bluetooth.getLEAdapter();
adapter.startScan();
setTimeout(function() {
adapter.stopScan();
}, 10000);
Now, the error is not thrown.
[Validation] tct-bluetooth-tizen-tests: auto: 100% pass rate,
manual Bluetooth04_BLE_wearable suite: 100% pass rate
The code above runs in ChromeDevTools without errors
Change-Id: Id9ec278b4bb1c5ce38d0b3ffb1324498152ab645
Signed-off-by: Pawel Wasowski <p.wasowski2@samsung.com>
BluetoothLEAdapter.prototype.stopScan = function() {
privUtils_.log('Entered BluetoothLEAdapter.stopScan()');
- _bleScanListener.removeListener();
-
var result = native.callSync('BluetoothLEAdapter_stopScan', {});
if (native.isFailure(result)) {
throw native.getErrorObject(result);
}
+
+ _bleScanListener.removeListener();
};
var _BluetoothAdvertisePacketType = {