Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2728941a authored by Himanshu Rawat's avatar Himanshu Rawat Committed by Gerrit Code Review
Browse files

Merge "Close gatt instance properly" into main

parents 4275a27e 38021c5c
Loading
Loading
Loading
Loading
+9 −4
Original line number Diff line number Diff line
@@ -368,11 +368,16 @@ public class GattClientTest {
        BluetoothGatt gatt = device.connectGatt(mContext, false, gattCallback);
        BluetoothGatt gatt2 = device.connectGatt(mContext, false, gattCallback2);

        try {
            gatt.disconnect();
            gatt.close();

            verify(gattCallback2, timeout(1000))
                    .onConnectionStateChange(eq(gatt2), eq(GATT_SUCCESS), eq(STATE_CONNECTED));
        } finally {
            gatt2.disconnect();
            gatt2.close();
        }
    }

    private void registerWritableGattService() {