| Index: device/bluetooth/android/java/src/org/chromium/device/bluetooth/ChromeBluetoothDevice.java
|
| diff --git a/device/bluetooth/android/java/src/org/chromium/device/bluetooth/ChromeBluetoothDevice.java b/device/bluetooth/android/java/src/org/chromium/device/bluetooth/ChromeBluetoothDevice.java
|
| index 6b163d828a2969461823ec1590fbb9d4d8e4a630..fcf34c54fe57bfa51fb1f7315d4d3679cf533c08 100644
|
| --- a/device/bluetooth/android/java/src/org/chromium/device/bluetooth/ChromeBluetoothDevice.java
|
| +++ b/device/bluetooth/android/java/src/org/chromium/device/bluetooth/ChromeBluetoothDevice.java
|
| @@ -148,6 +148,8 @@ final class ChromeBluetoothDevice {
|
| : "Disconnected");
|
| if (newState == android.bluetooth.BluetoothProfile.STATE_CONNECTED) {
|
| mBluetoothGatt.discoverServices();
|
| + } else if (newState == android.bluetooth.BluetoothProfile.STATE_DISCONNECTED) {
|
| + mBluetoothGatt.close();
|
| }
|
| ThreadUtils.runOnUiThread(new Runnable() {
|
| @Override
|
|
|