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

Commit ddd35031 authored by David Scherba's avatar David Scherba Committed by Steve Kondik
Browse files

Bluetooth: Disable SDP timeout handler on SDP completion

The service discovery (SDP) timeout handler set in fetchRemoteUuids()
needs to be removed when service discovery completes.  Otherwise, the
timeout handler can terminate subsequent service discovery operations.

Change-Id: Ib77e89b47f074a3f335c8424a225de8226e718b5
CRs-fixed: 235007
parent 35c92268
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1439,6 +1439,9 @@ public class BluetoothService extends IBluetooth.Stub {
        int channel;
        if (DBG) log("updateDeviceServiceChannelCache(" + address + ")");

        // Remove service channel timeout handler
        mHandler.removeMessages(MESSAGE_UUID_INTENT);

        ArrayList<ParcelUuid> applicationUuids = new ArrayList();

        synchronized (this) {