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

Commit 45ee058a authored by Jack He's avatar Jack He Committed by android-build-merger
Browse files

Merge "PBAP: Close mServerSockets when shutting down service" am: 1d5c530e

am: 2a87675a

Change-Id: Ie10a05201e7a33b760ad1f750677e68f6ec46bcd
parents c76c9637 2a87675a
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");
    }