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

Commit bfe13dfb authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "Bluetooth: Adds check to verify Bluetooth adapter state"

parents 47fd5bd3 60586a1c
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1563,6 +1563,7 @@ public final class BluetoothAdapter {
     */
    public void stopLeScan(LeScanCallback callback) {
        if (DBG) Log.d(TAG, "stopLeScan()");
        if (getState() != STATE_ON) return;
        GattCallbackWrapper wrapper;
        synchronized(mLeScanClients) {
            wrapper = mLeScanClients.remove(callback);