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

Commit 79242b04 authored by Joseph Pirozzo's avatar Joseph Pirozzo
Browse files

Cleanup Bluetooth MCE State Machine

If during connecting state the MAS disconnects (MSG_MAS_DISCONNECTED)
cleanup the MasClient.

Bug: 116189824
Test: Connect to phone that hasn't granted Message access permission
Change-Id: I84533dbad43ec6a63abf75d4eeb43661a5d875a0
parent f09dc8a6
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -374,6 +374,9 @@ final class MceStateMachine extends StateMachine {
                    break;

                case MSG_MAS_DISCONNECTED:
                    if (mMasClient != null) {
                        mMasClient.shutdown();
                    }
                    transitionTo(mDisconnected);
                    break;