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

Commit bd177ad7 authored by AnubhavGupta's avatar AnubhavGupta Committed by Ajay Panicker
Browse files

Stop accessing statemachine after cleanup

Usecase:
-pair and connect DUT with Remote
-Start A2DP streaming
-Initiate disconnection from DUT

Failure:
Bluetoth crashed after initiating disconnect from DUT

Rootcause:
Accessing state machine context after cleanup.

Fix:
Bluetooth: Added null check to stop accessing state machine after cleanup

Change-Id: I85ca55aaa0b7604125e45a62e32ae02eca605e43
parent 34ab8dd6
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -54,6 +54,7 @@ public class A2dpSinkService extends ProfileService {
    }

    protected boolean stop() {
        if(mStateMachine != null)
            mStateMachine.doQuit();
        return true;
    }