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

Commit b6732dc4 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "PBAP: Close mServerSockets when shutting down service" into oc-mr1-dev

parents 4e3bff41 1023c222
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");
    }