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

Commit ef54c28c authored by Qingqi Lei's avatar Qingqi Lei
Browse files

Release lock before return

Bug: 382549728

Flag: EXEMPT bugfix

Change-Id: I4eca9e6cda65e27ceff8b2da5bf5f0ff91dc48cd
parent 9bcae821
Loading
Loading
Loading
Loading
+11 −3
Original line number Diff line number Diff line
@@ -233,9 +233,17 @@ public class ApduSender {
                        if (channel == IccOpenLogicalChannelResponse.INVALID_CHANNEL
                                || status != IccOpenLogicalChannelResponse.STATUS_NO_ERROR) {
                            mChannelOpened = false;
                            resultCallback.onException(
                                    new ApduException("Failed to open logical channel for AID: "
                                            + mAid + ", with status: " + status));
                            returnRespnseOrException(
                                    channel,
                                    /* closeChannelImmediately= */ false,
                                    /* response= */ null,
                                    new ApduException(
                                            "Failed to open logical channel for AID: "
                                                    + mAid
                                                    + ", with status: "
                                                    + status),
                                    resultCallback,
                                    handler);
                            return;
                        }
                        PreferenceManager.getDefaultSharedPreferences(mContext)