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

Skip to content
Commit f6a7a5e9 authored by Jack He's avatar Jack He Committed by Andre Eisenbach
Browse files

PBAP: Clean up SDP record when closing service

* PBAP SDP record was never cleaned up when PBAP service is closed,
  resulting in stacked SDP records for PBAP.
* This CL groups cleanup statements into one method and calls it during
  onAcceptFailed() and closeService()
* onAcceptFailed() will clean up SDP, shutdown server sockets before
  starting a new server socket again
* startSocketListeners() will fail if SDP record already exist before it
  starts, caller is responsible in cleaning up the SDP record
* Also, if SDP record is valid, mAdapter should never be null and the
  check is unnecessary.

Bug: 67381100
Test: Pair with car kit and repeatly toggle Bluetooth ON/OFF
Change-Id: Ibff32289ca3e082b2a56f79d99c0e8dded728b83
(cherry picked from commit ee4d3dc7)
parent cab7cf41
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment