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

Commit 6d273b23 authored by sunxiang's avatar sunxiang Committed by Myles Watson
Browse files

Fix NPE when Bluetooth turn off



Test: atest BluetoothInstrumentationTests
Sponsor: mylesgw
Signed-off-by: default avatarsunxiang <sunxiang@xiaomi.com>
Change-Id: I9f285115ea2851078843192349705a382e5c5678
parent 2e3ed0d2
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;