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

Commit 2eb3fd87 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Fix NPE when Bluetooth turn off"

parents 2e3ed0d2 6d273b23
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -199,9 +199,11 @@ public class A2dpService extends ProfileService {
            }
            mStateMachines.clear();
        }

        if (mStateMachinesThread != null) {
            mStateMachinesThread.quitSafely();
            mStateMachinesThread = null;

        }
        // Step 2: Reset maximum number of connected audio devices
        mMaxConnectedAudioDevices = 1;