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

Commit 2a87675a 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

Change-Id: I16e2afcb29f5fa350ffa16b89c2fdb309e42b4f0
parents b946156e 1d5c530e
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");
    }