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

Commit bda7406b authored by Jack He's avatar Jack He Committed by Andre Eisenbach
Browse files

PBAP: Close mServerSockets when shutting down service

Bug: 65851259
Test: Turn Bluetooth ON/OFF, connect/disconnect with car kit
Change-Id: Id3c0ec2799b7d83cbc7439fac05f09d86bb31505
parent 36942ffd
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -444,6 +444,10 @@ public class BluetoothPbapService extends ProfileService implements IObexConnect

        closeConnectionSocket();
        closeServerSocket();
        if (mServerSockets != null) {
            mServerSockets.shutdown(false);
            mServerSockets = null;
        }
        if (mSessionStatusHandler != null) mSessionStatusHandler.removeCallbacksAndMessages(null);
        if (VERBOSE) Log.v(TAG, "Pbap Service closeService out");
    }