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

Commit 80c80607 authored by Hemant Gupta's avatar Hemant Gupta Committed by android-build-merger
Browse files

Merge "SAP: Prevent leak during turn off BT" am: 0a0bc5a4

am: b2a5263f

Change-Id: I0d3e43bbda98d7d84c208233b29c1722e33651be
parents 948f17d4 b2a5263f
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -242,6 +242,14 @@ public class SapRilReceiver {

    public void resetSapProxy() {
        synchronized (mSapProxyLock) {
            if (DEBUG) Log.d(TAG, "resetSapProxy :" + mSapProxy);
            try {
                if (mSapProxy != null) {
                    mSapProxy.unlinkToDeath(mSapProxyDeathRecipient);
                }
            } catch (RemoteException | RuntimeException e) {
                Log.e(TAG, "resetSapProxy: exception: " + e);
            }
            mSapProxy = null;
        }
    }