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

Commit ea6b26ff 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: I2ec2cbd8c080180114e18ed2b2059f617d44f93e
CRs-fixed: 235007
parent 85905c7e
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1557,6 +1557,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) {