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

Commit b9154bc9 authored by Pavlin Radoslavov's avatar Pavlin Radoslavov
Browse files

Unlock mBluetoothLock.readLock() instead of double-locking it

Bug: 29011117
Change-Id: Ie9e359c3ee079c2cecc33f11cfff7c0dc6406be1
(cherry picked from commit 7ee53be3)
parent 98cf9d1a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -225,7 +225,7 @@ class BluetoothManagerService extends IBluetoothManager.Stub {
                            } catch(RemoteException e) {
                                Log.e(TAG,"Unable to call onBrEdrDown", e);
                            } finally {
                                mBluetoothLock.readLock().lock();
                                mBluetoothLock.readLock().unlock();
                            }
                        } else if (st == BluetoothAdapter.STATE_ON){
                            // disable without persisting the setting