| Index: third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTCharacteristic.cpp
|
| diff --git a/third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTCharacteristic.cpp b/third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTCharacteristic.cpp
|
| index 89a1ea228b9310bb9b7cfa6293570c69c9dac058..84b788eb624477537b71c155959ed2a5e14e50b3 100644
|
| --- a/third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTCharacteristic.cpp
|
| +++ b/third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTCharacteristic.cpp
|
| @@ -51,6 +51,8 @@ void BluetoothRemoteGATTCharacteristic::setValue(DOMDataView* domDataView) {
|
|
|
| void BluetoothRemoteGATTCharacteristic::dispatchCharacteristicValueChanged(
|
| const Vector<uint8_t>& value) {
|
| + if (!getGatt()->connected())
|
| + return;
|
| this->setValue(BluetoothRemoteGATTUtils::ConvertWTFVectorToDataView(value));
|
| dispatchEvent(Event::create(EventTypeNames::characteristicvaluechanged));
|
| }
|
|
|